|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectigpp.util.Digest
public class Digest
Create message digests (checksums) for phrases or files.
Constructor Summary | |
---|---|
Digest()
|
Method Summary | |
---|---|
static String |
byteArrayToHexString(byte[] in)
Convert a byte[] array to readable string format. |
static String |
digestFile(String pathName)
Create a message digest for a file using any supported digest method. |
static String |
digestFile(String method,
String pathName)
Create a message digest for a file using any supported digest method. |
static String |
digestPhrase(String phrase)
Create a message digest for a phrase using the MD5 method. |
static String |
digestPhrase(String method,
String phrase)
Create a message digest for a phrase using any supported digest method. |
static long |
lastModified(String pathName)
Determine when a file was last modified. |
static void |
main(String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Digest()
Method Detail |
---|
public static void main(String[] args)
public static long lastModified(String pathName)
public static String digestPhrase(String phrase) throws Exception
Exception
public static String digestPhrase(String method, String phrase) throws Exception
Exception
public static String digestFile(String pathName) throws Exception
Exception
public static String digestFile(String method, String pathName) throws Exception
Exception
public static String byteArrayToHexString(byte[] in)
in
- byte[] buffer to convert to string format
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |