Package org.honton.chas.bom
Class Sha1
- java.lang.Object
-
- org.honton.chas.bom.Sha1
-
public class Sha1 extends Object
Calculate digest for a file.
-
-
Constructor Summary
Constructors Constructor Description Sha1()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Stringencode(byte[] bytes)StringgetChecksum(Path path)byte[]getChecksumBytes(Path path)
-
-
-
Constructor Detail
-
Sha1
public Sha1() throws NoSuchAlgorithmException- Throws:
NoSuchAlgorithmException
-
-
Method Detail
-
encode
public static String encode(byte[] bytes)
-
getChecksumBytes
public byte[] getChecksumBytes(Path path) throws IOException
- Throws:
IOException
-
getChecksum
public String getChecksum(Path path) throws IOException
- Throws:
IOException
-
-