lexx.utils
Class MD5

java.lang.Object
  |
  +--lexx.utils.MD5

public final class MD5
extends java.lang.Object

Static Factory class used to create a unique Hash Key from a file/string via the MD5 algorithm

Copyright (c) 2002-2003

Since:
20/03/2003
Version:
1.0
Author:
Mohammed Imran

Constructor Summary
MD5()
           
 
Method Summary
static java.lang.String getHaskKey(java.io.File f)
          returns the hask key of the file
static java.lang.String getHaskKey(java.io.InputStream in)
          returns the hask key of the inputstream
static java.lang.String getHaskKey(java.lang.String data)
          returns the hask key of the string
static java.lang.String getHaskKey(java.net.URL url)
          returns the hask key of the url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MD5

public MD5()
Method Detail

getHaskKey

public static java.lang.String getHaskKey(java.io.File f)
returns the hask key of the file

Parameters:
f - file you wish to hash
Returns:
returns the hask key of the file

getHaskKey

public static java.lang.String getHaskKey(java.net.URL url)
returns the hask key of the url

Parameters:
url - the url you wish to hash
Returns:
returns the hask key of the url

getHaskKey

public static java.lang.String getHaskKey(java.lang.String data)
returns the hask key of the string

Parameters:
data - the string you wish to hash
Returns:
returns the hask key of the string

getHaskKey

public static java.lang.String getHaskKey(java.io.InputStream in)
returns the hask key of the inputstream

Parameters:
in - the inputstream you wish to hash
Returns:
returns the hask key of the inputstream