org.codehaus.plexus.digest
public interface Digester
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ROLE |
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.String |
getFilenameExtension()
The filename extension for this digester.
|
void |
verify(java.io.File file,
java.lang.String checksum)
Verify that a checksum is correct.
|
java.lang.String getAlgorithm()
java.lang.String getFilenameExtension()
java.lang.String calc(java.io.File file) throws DigesterException
file
- the file to calculate the checksum forDigesterException
- 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 toDigesterException
- if there was a problem computing the hashcode.Copyright © 2014. All Rights Reserved.