|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.io.Hex
public final class Hex
Utility for hexidecimal encoding and decoding.
| Method Summary | |
|---|---|
static byte[] |
decode(char[] value)
This will convert the supplied value to a hex encoded string. |
protected static int |
decode(char[] hex,
int i)
Decodes the supplied character to it's corresponding nibble. |
static char[] |
encode(byte[] value)
This will convert the supplied value to a hex encoded string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static char[] encode(byte[] value)
value - to hex encode
public static byte[] decode(char[] value)
value - to hex encode
IllegalArgumentException - if value is not valid hexidecimal
protected static int decode(char[] hex,
int i)
hex - to read character fromi - index of hex to read
IllegalArgumentException - if the character is not valid hex
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||