public class FileMetaData extends Object
Modifier and Type | Field and Description |
---|---|
private long |
lastAccessed |
private long |
lastModified |
private long |
size |
Constructor and Description |
---|
FileMetaData() |
Modifier and Type | Method and Description |
---|---|
long |
getLastAccessedTime()
Get the timestamp when that the file was last accessed.
|
long |
getLastModifiedTime()
Get the timestamp when the file was last modified.
|
long |
getSize()
The number of bytes of the resource or 0 if not known.
|
void |
setLastAccessedTime(long timestamp)
Set the date and time the file was last accessed.
|
void |
setLastModifiedTime(long timestamp)
Set the date and time the file was last modified.
|
void |
setSize(long size)
Set the size of the file that is about to be downloaded.
|
private long size
private long lastModified
private long lastAccessed
public long getSize()
public void setSize(long size)
public long getLastModifiedTime()
public void setLastModifiedTime(long timestamp)
timestamp
- A Java timestamppublic long getLastAccessedTime()
public void setLastAccessedTime(long timestamp)
timestamp
- A Java timestamp