Package org.apache.cassandra.spark.utils
Class MD5DigestAlgorithm
- java.lang.Object
-
- org.apache.cassandra.spark.utils.MD5DigestAlgorithm
-
- All Implemented Interfaces:
DigestAlgorithm
public class MD5DigestAlgorithm extends java.lang.Object implements DigestAlgorithm
ADigestAlgorithmimplementation that computes MD5 digests
-
-
Constructor Summary
Constructors Constructor Description MD5DigestAlgorithm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DigestcalculateFileDigest(java.nio.file.Path path)Calculates theDigestfor the given file in thepath.
-
-
-
Method Detail
-
calculateFileDigest
public Digest calculateFileDigest(java.nio.file.Path path) throws java.io.IOException
Calculates theDigestfor the given file in thepath.- Specified by:
calculateFileDigestin interfaceDigestAlgorithm- 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
-
-