Class MD5BinaryFileUtils
java.lang.Object
org.gvsig.installer.lib.impl.utils.MD5BinaryFileUtils
- Author:
- jldominguez
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]createChecksum(File the_file) static StringgetMD5Checksum(File the_file) In case this is too slow for you: There are faster ways to convert a byte array to a HEX stringstatic StringgetMD5InRemoteFile(URL remote_file) Gets the MD5 string of a md5 file which is associated with the file provided.
-
Constructor Details
-
MD5BinaryFileUtils
public MD5BinaryFileUtils()
-
-
Method Details
-
getMD5InRemoteFile
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
- Throws:
Exception
-
getMD5Checksum
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
-