| java.lang.Object org.apache.ivy.util.ChecksumHelper
ChecksumHelper | final public class ChecksumHelper (Code) | | |
byteArrayToHexString | public static String byteArrayToHexString(byte[] in)(Code) | | Convert a byte[] array to readable string format. This makes the "hex" readable!
result String buffer in String format Parameters: in - byte[] buffer to convert to string format |
check | public static void check(File dest, File checksumFile, String algorithm) throws IOException(Code) | | Checks the checksum of the given file against the given checksumFile, and throws an
IOException if the checksum is not compliant
Parameters: dest - the file to test Parameters: checksumFile - the file containing the expected checksum Parameters: algorithm - the checksum algorithm to use throws: IOException - if an IO problem occur whle reading files or if the checksum is not compliant |
|
|