public class CRC32FileDigester extends AbstractFileDigester
FileDigester for the CRC32 algorithm.FileDigester| Modifier and Type | Field and Description |
|---|---|
static String |
ALGORITHM
The identifier of the algorithm supported by this implementation.
|
algorithmSTREAMING_BUFFER_SIZE| Constructor and Description |
|---|
CRC32FileDigester()
Build a new instance of
CRC32FileDigester. |
| Modifier and Type | Method and Description |
|---|---|
String |
calculate(File file)
Calculate a checksum for a file.
|
getAlgorithm, getFileExtensionpublic static final String ALGORITHM
public CRC32FileDigester()
CRC32FileDigester.public String calculate(File file) throws DigesterException
file - the file to compute the checksum for.DigesterException - if there was a problem computing the hashcode.Copyright © 2010–2016. All rights reserved.