public final class Hex
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static char[] |
HEX |
| Modifier | Constructor and Description |
|---|---|
private |
Hex()
Defeats instantiation.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decode(java.lang.String s)
Decode a hexadecimal string to a byte array.
|
static java.lang.String |
toHexString(byte[] b)
Encode a byte array to a hexadecimal string.
|
public static byte[] decode(java.lang.String s)
s - hexadecimal stringpublic static java.lang.String toHexString(byte[] b)
b - byte array