public interface FileDigester
| Modifier and Type | Field and Description |
|---|---|
static int |
STREAMING_BUFFER_SIZE
The size of the buffer used to stream the files contents while calculating their hashcode.
|
| Modifier and Type | Method and Description |
|---|---|
String |
calculate(File file)
Calculate a checksum for a file.
|
String |
getAlgorithm()
Get the algorithm used to compute checksum digests.
|
String |
getFileExtension()
The filename extension for this digester.
|
static final int STREAMING_BUFFER_SIZE
String getAlgorithm()
String getFileExtension()
String calculate(File file) throws DigesterException, NoSuchAlgorithmException
file - the file to compute the checksum for.DigesterException - if there was a problem computing the hashcode.NoSuchAlgorithmException - in case the given is not supported.Copyright © 2010–2018. All rights reserved.