|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Create a digest for a file.
| Field Summary | |
static java.lang.String |
ROLE
|
| Method Summary | |
java.lang.String |
calc(java.io.File file)
Calculate a checksum for a file. |
java.lang.String |
getAlgorithm()
Get the algorithm used for the checksum. |
void |
verify(java.io.File file,
java.lang.String checksum)
Verify that a checksum is correct. |
| Field Detail |
public static final java.lang.String ROLE
| Method Detail |
public java.lang.String getAlgorithm()
public java.lang.String calc(java.io.File file)
throws DigesterException
file - the file to calculate the checksum for
DigesterException - if there was a problem computing the hashcode.
public void verify(java.io.File file,
java.lang.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 | |||||||||