public class HexEncoder
extends java.lang.Object
| Constructor and Description |
|---|
HexEncoder() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getBytes(java.lang.String hexString)
Converts a hex string to a byte array.
|
static java.lang.String |
getString(byte[] bytes)
Converts a byte array to a hex string.
|
static byte[] |
tryGetBytes(java.lang.String hexString)
Tries to convert a hex string to a byte array.
|
public static byte[] getBytes(java.lang.String hexString)
hexString - The input hex string.public static byte[] tryGetBytes(java.lang.String hexString)
hexString - The input hex string.public static java.lang.String getString(byte[] bytes)
bytes - The input byte array.