public class FileInformation
extends java.lang.Object
Objects of this class hold various pieces of information about a file.
Those pieces of information represent a snapshot of the file's metadata, at one point in time: they were then valid, but may no longer be.
For instance: the file itself may no longer exist, the contents may have been modified, etc.
Modifier and Type | Method and Description |
---|---|
byte[] |
getMD5Hash()
Get the file contents MD5 hash.
|
java.lang.String |
getPath()
Get the file path.
|
byte[] |
getSHA1Hash()
Get the file contents SHA-1 hash.
|
byte[] |
getSHA256Hash()
Get the file contents SHA-256 hash.
|
public java.lang.String getPath()
Get the file path.
public byte[] getMD5Hash()
Get the file contents MD5 hash.
public byte[] getSHA1Hash()
Get the file contents SHA-1 hash.
public byte[] getSHA256Hash()
Get the file contents SHA-256 hash.