Class Sha1Sum


  • public class Sha1Sum
    extends java.lang.Object
    Calculate the sha1sum for various content
    • Constructor Summary

      Constructors 
      Constructor Description
      Sha1Sum()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String calculate​(byte[] buf)  
      static java.lang.String calculate​(byte[] buf, int offset, int len)  
      static java.lang.String calculate​(java.io.File file)  
      static java.lang.String calculate​(java.nio.file.Path path)  
      static java.lang.String loadSha1​(java.io.File sha1File)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Sha1Sum

        public Sha1Sum()
    • Method Detail

      • calculate

        public static java.lang.String calculate​(java.io.File file)
                                          throws java.security.NoSuchAlgorithmException,
                                                 java.io.IOException
        Throws:
        java.security.NoSuchAlgorithmException
        java.io.IOException
      • calculate

        public static java.lang.String calculate​(java.nio.file.Path path)
                                          throws java.security.NoSuchAlgorithmException,
                                                 java.io.IOException
        Throws:
        java.security.NoSuchAlgorithmException
        java.io.IOException
      • calculate

        public static java.lang.String calculate​(byte[] buf)
                                          throws java.security.NoSuchAlgorithmException
        Throws:
        java.security.NoSuchAlgorithmException
      • calculate

        public static java.lang.String calculate​(byte[] buf,
                                                 int offset,
                                                 int len)
                                          throws java.security.NoSuchAlgorithmException
        Throws:
        java.security.NoSuchAlgorithmException
      • loadSha1

        public static java.lang.String loadSha1​(java.io.File sha1File)
                                         throws java.io.IOException
        Throws:
        java.io.IOException