public abstract class AbstractDigester extends Object implements Digester
Modifier | Constructor and Description |
---|---|
protected |
AbstractDigester(StreamingDigester streamingDigester) |
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 |
toString() |
void |
verify(File file,
String checksum)
Verify that a checksum is correct.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFilenameExtension
protected AbstractDigester(StreamingDigester streamingDigester)
public String getAlgorithm()
Digester
getAlgorithm
in interface Digester
public String calc(File file) throws DigesterException
Digester
calc
in interface Digester
file
- the file to calculate the checksum forDigesterException
- if there was a problem computing the hashcode.public void verify(File file, String checksum) throws DigesterException
Digester
verify
in interface Digester
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.