|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The FileDigest interface specifies the nescessary information to determine if a file on disk has changed from some checkpoint. There are three pieces of information that can be used to determine this: the file's lastModified time, the file size, and a checksum of the file's contents.
| Method Summary | |
MD5 |
getFileMD5()
Gets the MD5 cryptographic hash of the file's content. |
long |
getFileSize()
Gets the file's size. |
double |
getFileTime()
Gets the file's last modified time. |
void |
setFileMD5(MD5 md5)
Sets the MD5 cryptographic hash of the file's content. |
void |
setFileSize(long size)
Sets the file's size. |
void |
setFileTime(double time)
Sets the file's last modified time. |
| Method Detail |
public double getFileTime()
public void setFileTime(double time)
time - The file's last modified time, as the number days from midnight,
30 December 1899, in UTC.public long getFileSize()
public void setFileSize(long size)
size - The file's size, in bytes.public MD5 getFileMD5()
public void setFileMD5(MD5 md5)
md5 - The MD5 cryptographic hash of the file's content.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||