gov.nasa.pds.harvest.file
Class MD5Checksum
java.lang.Object
gov.nasa.pds.harvest.file.MD5Checksum
public class MD5Checksum
- extends Object
A class that calculates the MD5 checksum of a file.
- Author:
- mcayanan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MD5Checksum
public MD5Checksum()
getMD5Checksum
public static String getMD5Checksum(String filename)
throws Exception
- Gets the MD5 checksum value.
- Parameters:
filename
- The filename.
- Returns:
- The MD5 checksum of the given filename.
- Throws:
Exception
- If an error occurred while calculating the checksum.
Copyright © 2010-2013 Planetary Data System. All Rights Reserved.