|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.starbase.util.MD5
| Constructor Summary | |
MD5()
|
|
MD5(byte[] aSourceBytes)
|
|
MD5(MD5 aMD5)
|
|
MD5(java.lang.String stringMD5)
Construct a new MD5 with the given String value. |
|
| Method Summary | |
void |
computeBufferMD5(byte[] data)
Compute MD5 for a byte array. |
int |
computeFileMD5(java.io.File file)
Deprecated. Use computeFileMD5Ex, which supports file sizes greater than 2GB. |
long |
computeFileMD5Ex(java.io.File file)
Computes the MD5 of the given file. |
int |
computeStreamMD5(java.io.InputStream in)
Deprecated. Use computeStreamMD5Ex, which supports file sizes greater than 2GB. |
long |
computeStreamMD5Ex(java.io.InputStream in)
Computes the MD5 of the given input stream. |
boolean |
equals(java.lang.Object obj)
Return true if the given byte[] is identical to this object. |
byte[] |
getData()
|
int |
hashCode()
Return a hashcode for this MD5 value. |
void |
setData(byte[] aSource)
|
java.lang.String |
toHexString()
Return the a 32-character String equal to the hex equivalent of this MD5 value. |
java.lang.String |
toString()
returns a quasi-readable string representation of this MD5 |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MD5(java.lang.String stringMD5)
stringMD5 - A 32-character hex value of an MD5 value.
java.lang.IllegalArgumentException - If the given value is not 32 characters.
NumberFormatExcpetion - If the given value does not contain all
hexadecimal characters (a-z, A-Z, or 0-9).public MD5()
public MD5(byte[] aSourceBytes)
public MD5(MD5 aMD5)
| Method Detail |
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - Object to be compared.
public void computeBufferMD5(byte[] data)
public java.lang.String toHexString()
public java.lang.String toString()
toString in class java.lang.Object
public int computeStreamMD5(java.io.InputStream in)
throws java.io.IOException
in - The input stream.
java.io.IOExceptionMD5.computeStreamMD5Ex(java.io.InputStream)
public long computeStreamMD5Ex(java.io.InputStream in)
throws java.io.IOException
in - The input stream.
java.io.IOException
public int computeFileMD5(java.io.File file)
throws java.io.IOException
file - The input file.
java.io.IOExceptionMD5.computeFileMD5Ex(java.io.File)
public long computeFileMD5Ex(java.io.File file)
throws java.io.IOException
file - The input file.
java.io.IOExceptionpublic byte[] getData()
public void setData(byte[] aSource)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||