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 Details

    • MD5Checksum

      public MD5Checksum()
  • Method Details

    • getMD5Checksum

      public static String getMD5Checksum​(URL url) throws Exception
      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.