org.apache.ivy.util
public final class ChecksumHelper extends Object
| Method Summary | |
|---|---|
| static String | byteArrayToHexString(byte[] in)
Convert a byte[] array to readable string format. |
| static void | check(File dest, File checksumFile, String algorithm)
Checks the checksum of the given file against the given checksumFile, and throws an
IOException if the checksum is not compliant
|
| static String | computeAsString(File f, String algorithm) |
| static boolean | isKnownAlgorithm(String algorithm) |
Parameters: in byte[] buffer to convert to string format
Returns: result String buffer in String format
Parameters: dest the file to test checksumFile the file containing the expected checksum algorithm the checksum algorithm to use
Throws: IOException if an IO problem occur whle reading files or if the checksum is not compliant