public final class Utils
extends java.lang.Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
bytesToHexString(byte[] s)
Converts a byte array to its hex string representation.
|
static byte[] |
hexStringToBytes(java.lang.String s)
Converts an Hex string to a byte array.
|
public static byte[] hexStringToBytes(java.lang.String s) throws java.lang.Exception
s
- Hex string to convert.java.lang.Exception
- "hexStringToBytes: Illegal character"public static java.lang.String bytesToHexString(byte[] s)
s
- Byte array to convert.