Class MD5DigestAlgorithm

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Digest calculateFileDigest​(java.nio.file.Path path)
      Calculates the Digest for the given file in the path.
      • Methods inherited from class java.lang.Object

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

      • MD5DigestAlgorithm

        public MD5DigestAlgorithm()
    • Method Detail

      • calculateFileDigest

        public Digest calculateFileDigest​(java.nio.file.Path path)
                                   throws java.io.IOException
        Calculates the Digest for the given file in the path.
        Specified by:
        calculateFileDigest in interface DigestAlgorithm
        Parameters:
        path - the path of the file
        Returns:
        the calculated digest for the given path
        Throws:
        java.io.IOException - when an error occurs while reading the file or calculating the digest