|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.jxta.search.util.HexTools
HexTools is a collection of methods for manipulating binary data to and from a printable hexidecimal format.
Constructor Summary | |
HexTools()
|
Method Summary | |
static byte |
byteFromHex(char hic,
char loc)
Returns a byte with the binary equivalent of the two chars passed to it |
static byte[] |
deHexify(java.lang.String buf)
Returns a byte array containing the binary equivalent of the string of hexidecimal characters passed to it. |
static java.lang.String |
deHexifyChars(java.lang.String buffer,
char hexor)
Takes a string and a character and replaces all instances of the characters hexidecimal value (in the form %XX) with the character and returns the result. |
static java.lang.String |
hexFromByte(byte buf)
Returns a two character string with the hexidecimal representation of a byte. |
static java.lang.String |
hexify(byte[] buf)
Returns a string containing the hexidecimal representation of an array of bytes. |
static java.lang.String |
hexifyChars(java.lang.String buffer,
char hexor)
Takes a string and replaces all instances of the specified character with the characters hexidecimal value in the form %XX and returns the result. |
static void |
main(java.lang.String[] args)
Tests HexTools |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HexTools()
Method Detail |
public static java.lang.String hexFromByte(byte buf)
public static byte byteFromHex(char hic, char loc)
public static byte[] deHexify(java.lang.String buf)
public static java.lang.String hexify(byte[] buf)
public static java.lang.String hexifyChars(java.lang.String buffer, char hexor)
public static java.lang.String deHexifyChars(java.lang.String buffer, char hexor)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |