|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.ivy.util.ChecksumHelper
public final class ChecksumHelper
| Method Summary | |
|---|---|
static java.lang.String |
byteArrayToHexString(byte[] in)
Convert a byte[] array to readable string format. |
static void |
check(java.io.File dest,
java.io.File checksumFile,
java.lang.String algorithm)
Checks the checksum of the given file against the given checksumFile, and throws an IOException if the checksum is not compliant |
static java.lang.String |
computeAsString(java.io.File f,
java.lang.String algorithm)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void check(java.io.File dest,
java.io.File checksumFile,
java.lang.String algorithm)
throws java.io.IOException
dest - the file to testchecksumFile - the file containing the expected checksumalgorithm - the checksum algorithm to use
java.io.IOException - if an IO problem occur whle reading files or if the checksum is not compliant
public static java.lang.String computeAsString(java.io.File f,
java.lang.String algorithm)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String byteArrayToHexString(byte[] in)
in - byte[] buffer to convert to string format
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||