Package org.honton.chas.exists
Class CheckSum
- java.lang.Object
-
- org.honton.chas.exists.CheckSum
-
public class CheckSum extends Object
Calculate digest for a file.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetChecksum(File file)byte[]getChecksumBytes(File file)
-
-
-
Constructor Detail
-
CheckSum
public CheckSum(String digestAlgorithm) throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
-
-
Method Detail
-
getChecksumBytes
public byte[] getChecksumBytes(File file) throws IOException
- Throws:
IOException
-
getChecksum
public String getChecksum(File file) throws IOException
- Throws:
IOException
-
-