|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sonatype.aether.util.ChecksumUtils
public class ChecksumUtils
A utility class to assist in the verification and generation of checksums.
Method Summary | |
---|---|
static Map<String,Object> |
calc(File dataFile,
Collection<String> algos)
Calculates checksums for the specified file. |
static String |
read(File checksumFile)
Extracts the checksum from the specified file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String read(File checksumFile) throws IOException
checksumFile
- The path to the checksum file, must not be null
.
null
.
IOException
- If the checksum does not exist or could not be read for other reasons.public static Map<String,Object> calc(File dataFile, Collection<String> algos) throws IOException
dataFile
- The file for which to calculate checksums, must not be null
.algos
- The names of checksum algorithms (cf. MessageDigest.getInstance(String)
to use, must not be
null
.
null
.
IOException
- If the data file could not be read.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |