org.codehaus.plexus.digest
public interface Digester
Field Summary | |
---|---|
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.
|
Parameters: file the file to calculate the checksum for
Returns: the current checksum.
Throws: DigesterException if there was a problem computing the hashcode.
Returns: the algorithm
Returns: the filename extension.
Parameters: file the file to compute the checksum for checksum the checksum to compare to
Throws: DigesterException if there was a problem computing the hashcode.