public class FileDescription
extends java.lang.Object
implements java.lang.Cloneable
| Constructor and Description |
|---|
FileDescription()
Constructs a FileDescription with a null value.
|
FileDescription(java.lang.String name,
java.lang.String mimeType,
java.util.Date startTime,
java.util.Date endTime,
long length,
java.util.Date lastModified)
Constructs a FileDescription with the given attribute values.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates and returns a copy of this object.
|
java.util.Date |
getEndTime()
Gets the end time of the file's contents.
|
java.util.Date |
getLastModified()
Gets the file's lastModified value.
|
long |
getLength()
Gets the file's length.
|
java.lang.String |
getMimeType()
Gets the file's MIME-type value.
|
java.lang.String |
getName()
Gets the file's name.
|
java.util.Date |
getStartTime()
Gets the start time of the file's contents.
|
void |
setEndTime(java.util.Date value)
Sets the end time of the file's contents.
|
void |
setLastModified(java.util.Date value)
Sets the file's lastModified value.
|
void |
setLength(long value)
Sets the file's length.
|
void |
setMimeType(java.lang.String value)
Sets the file's MIME-type value.
|
void |
setName(java.lang.String value)
Sets the file's name.
|
void |
setStartTime(java.util.Date value)
Sets the start time of the file's contents.
|
public FileDescription()
public FileDescription(java.lang.String name,
java.lang.String mimeType,
java.util.Date startTime,
java.util.Date endTime,
long length,
java.util.Date lastModified)
name - name of filemimeType - MIME-type of filestartTime - start time of data contained in fileendTime - end time of data contained in filelength - length of file in byteslastModified - time when file as last modifiedpublic java.lang.String getName()
setName(java.lang.String)public void setName(java.lang.String value)
value - new name valuegetName()public java.lang.String getMimeType()
setMimeType(java.lang.String)public void setMimeType(java.lang.String value)
value - new mimeType valuegetMimeType()public java.util.Date getStartTime()
setStartTime(java.util.Date)public void setStartTime(java.util.Date value)
value - new startTime valuegetStartTime()public java.util.Date getEndTime()
setEndTime(java.util.Date)public void setEndTime(java.util.Date value)
value - new endTime valuegetEndTime()public long getLength()
setLength(long)public void setLength(long value)
value - new length valuegetLength()public java.util.Date getLastModified()
setLastModified(java.util.Date)public void setLastModified(java.util.Date value)
value - new lastModified valuegetLastModified()public java.lang.Object clone()
clone in class java.lang.ObjectObject.clone()CDAS Feedback.
Copyright © 2003-2021 United States Government as represented by the National Aeronautics and Space Administration. No copyright is claimed in the United States under Title 17, U.S.Code. All Other Rights Reserved.