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, waitgetFilenameExtensionprotected AbstractDigester(StreamingDigester streamingDigester)
public String getAlgorithm()
DigestergetAlgorithm in interface Digesterpublic String calc(File file) throws DigesterException
Digestercalc in interface Digesterfile - the file to calculate the checksum forDigesterException - if there was a problem computing the hashcode.public void verify(File file, String checksum) throws DigesterException
Digesterverify in interface Digesterfile - 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.