public final class Hex extends Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decode(char[] value)
This will convert the supplied value from 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.
|
public static char[] encode(byte[] value)
value - to hex encodepublic static byte[] decode(char[] value)
value - to hex decodeIllegalArgumentException - if value is not valid hexidecimalprotected static int decode(char[] hex,
int i)
hex - to read character fromi - index of hex to readIllegalArgumentException - if the character is not valid hexCopyright © 2023. All rights reserved.