|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.resteasy.util.Hex
public class Hex
| Constructor Summary | |
|---|---|
Hex()
|
|
| Method Summary | |
|---|---|
static byte[] |
decodeHex(java.lang.String str)
Converts an array of characters representing hexidecimal values into an array of bytes of those same values. |
static java.lang.String |
encodeHex(byte[] data)
Converts an array of bytes into an array of characters representing the hexidecimal values of each byte in order. |
protected static int |
toDigit(char ch,
int index)
Converts a hexadecimal character to an integer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Hex()
| Method Detail |
|---|
public static byte[] decodeHex(java.lang.String str)
data - An array of characters containing hexidecimal digits
DecoderException - Thrown if an odd number or illegal of characters
is supplied
protected static int toDigit(char ch,
int index)
ch - A character to convert to an integer digitindex - The index of the character in the source
public static java.lang.String encodeHex(byte[] data)
data - a byte[] to convert to Hex characters
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||