|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface File.Digest
The Digest interface specifies the necessary 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. NOTE: This interface is not intended to be implemented by client applications.
| Method Summary | |
|---|---|
MD5 |
getFileMD5()
Gets the MD5 cryptographic hash of the file's content. |
long |
getFileSize()
Gets the file's size. |
DateTime |
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(DateTime time)
Sets the file's last modified time. |
| Method Detail |
|---|
DateTime getFileTime()
void setFileTime(DateTime time)
time - The file's last modified time, as the number days from
midnight, 30 December 1899, in UTC.long getFileSize()
void setFileSize(long size)
size - The file's size, in bytes.MD5 getFileMD5()
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 | ||||||||