Package gov.nasa.pds.tools.util
Class MD5Checksum
java.lang.Object
gov.nasa.pds.tools.util.MD5Checksum
public class MD5Checksum extends Object
A class that calculates the MD5 checksum of a file.
- Author:
- mcayanan
-
Constructor Summary
Constructors Constructor Description MD5Checksum()
-
Method Summary
Modifier and Type Method Description static String
getMD5Checksum(URL url)
Gets the MD5 checksum value.
-
Constructor Details
-
MD5Checksum
public MD5Checksum()
-
-
Method Details
-
getMD5Checksum
Gets the MD5 checksum value.- Parameters:
url
- The url to the file or resource.- Returns:
- The MD5 checksum of the given filename.
- Throws:
Exception
- If an error occurred while calculating the checksum.
-