gov.nasa.pds.citool.file
Class MD5Checksum

java.lang.Object
  extended by gov.nasa.pds.citool.file.MD5Checksum

public class MD5Checksum
extends Object

A class that calculates the MD5 checksum of a file.

Author:
mcayanan

Constructor Summary
MD5Checksum()
           
 
Method Summary
static String getMD5Checksum(String filename)
          Gets the MD5 checksum value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MD5Checksum

public MD5Checksum()
Method Detail

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–2014 Planetary Data System. All rights reserved.