public class CksumFileDigester extends AbstractFileDigester
FileDigester for the POSIX 1003.2 CRC algorithm (32 bits).
The checksum calculated by this digester is consistent with Unix command cksum.
This implementation is based on Jacksum library implementation.
FileDigester,
http://www.jonelo.de/java/jacksum/| Modifier and Type | Field and Description |
|---|---|
static String |
ALGORITHM
The identifier of the algorithm supported by this implementation.
|
algorithmSTREAMING_BUFFER_SIZE| Constructor and Description |
|---|
CksumFileDigester() |
| Modifier and Type | Method and Description |
|---|---|
String |
calculate(File file)
Calculate a checksum for a file.
|
getAlgorithm, getFileExtensionpublic static final String ALGORITHM
public String calculate(File file) throws DigesterException
FileDigesterfile - the file to compute the checksum for.DigesterException - if there was a problem computing the hashcode.Copyright © 2010–2016. All rights reserved.