|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Digester
Create a digest for a file.
Field Summary | |
---|---|
static String |
ROLE
|
Method Summary | |
---|---|
String |
calc(File file)
Calculate a checksum for a file. |
String |
getAlgorithm()
Get the algorithm used for the checksum. |
String |
getFilenameExtension()
The filename extension for this digester. |
void |
verify(File file,
String checksum)
Verify that a checksum is correct. |
Field Detail |
---|
static final String ROLE
Method Detail |
---|
String getAlgorithm()
String getFilenameExtension()
String calc(File file) throws DigesterException
file
- the file to calculate the checksum for
DigesterException
- if there was a problem computing the hashcode.void verify(File file, String checksum) throws DigesterException
file
- the file to compute the checksum forchecksum
- the checksum to compare to
DigesterException
- if there was a problem computing the hashcode.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |