|
|||||||||
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 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 |
---|
static final java.lang.String ROLE
Method Detail |
---|
java.lang.String getAlgorithm()
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.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 |