public interface Digester
Modifier and Type | Method and Description |
---|---|
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.
|
static final String ROLE
String getAlgorithm()
String getFilenameExtension()
String calc(File file) throws DigesterException
file
- the file to calculate the checksum forDigesterException
- 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 toDigesterException
- if there was a problem computing the hashcode.Copyright © 2001–2015 Codehaus Plexus. All rights reserved.