Class MD5BinaryFileUtils

java.lang.Object
org.gvsig.installer.lib.impl.utils.MD5BinaryFileUtils

public class MD5BinaryFileUtils extends Object
Author:
jldominguez
  • Constructor Details

    • MD5BinaryFileUtils

      public MD5BinaryFileUtils()
  • Method Details

    • getMD5InRemoteFile

      public static String getMD5InRemoteFile(URL remote_file)
      Gets the MD5 string of a md5 file which is associated with the file provided.
      Parameters:
      remote_file - the file that has a ".md5" file next to it
      Returns:
    • createChecksum

      public static byte[] createChecksum(File the_file) throws Exception
      Throws:
      Exception
    • getMD5Checksum

      public static String getMD5Checksum(File the_file) throws Exception
      In case this is too slow for you: There are faster ways to convert a byte array to a HEX string
      Parameters:
      the_file - the input file
      Returns:
      the given file's MD5 checksum as a hex string
      Throws:
      Exception