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.
-
-
Constructor Summary
Constructors Constructor Description CheckSum()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetChecksum(Path path)byte[]getChecksumBytes(Path path)voidwriteChecksum(Path path)
-
-
-
Constructor Detail
-
CheckSum
public CheckSum() throws NoSuchAlgorithmException- Throws:
NoSuchAlgorithmException
-
-
Method Detail
-
getChecksumBytes
public byte[] getChecksumBytes(Path path) throws IOException
- Throws:
IOException
-
getChecksum
public String getChecksum(Path path) throws IOException
- Throws:
IOException
-
writeChecksum
public void writeChecksum(Path path) throws IOException
- Throws:
IOException
-
-