Class DigestUtilsKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • calculateDigest

         final static ByteArray calculateDigest(Path $self, String algorithm, Integer bufferSize)

        Calculates a digest over the contents of a file.

        Parameters:
        algorithm - the digest algorithm, e.g.
        bufferSize - the buffer size
        Returns:

        the digest as an array of bytes

      • calculateDigest

         final static ByteArray calculateDigest(File $self, String algorithm, Integer bufferSize)

        Calculates a digest over the contents of a file.

        Parameters:
        algorithm - the digest algorithm, e.g.
        bufferSize - the buffer size
        Returns:

        the digest as an array of bytes

      • calculateDigestHex

         final static String calculateDigestHex(Path $self, String algorithm, Integer bufferSize)

        Calculates a digest over the contents of a file, and encodes it as a lower-case hexadecimal string.

        Parameters:
        algorithm - the digest algorithm, e.g.
        bufferSize - the buffer size
        Returns:

        the digest as a hex-encoded string

      • calculateDigestHex

         final static String calculateDigestHex(File $self, String algorithm, Integer bufferSize)

        Calculates a digest over the contents of a file, and encodes it as a lower-case hexadecimal string.

        Parameters:
        algorithm - the digest algorithm, e.g.
        bufferSize - the buffer size
        Returns:

        the digest as a hex-encoded string