public class HexUtil
extends java.lang.Object
| Constructor and Description |
|---|
HexUtil() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
toBytes(java.lang.String hex)
Converts a hex string back to bytes.
|
static java.lang.String |
toString(byte[] data)
Converts byte data to a hex string.
|
static java.lang.String |
toStringUpperCase(byte[] data)
Converts byte data to a hex string.
|
public static java.lang.String toString(byte[] data)
The following characters are used as hexadecimal digits: 0123456789abcdef
data - the datapublic static java.lang.String toStringUpperCase(byte[] data)
The following characters are used as hexadecimal digits: 0123456789ABCDEF
data - the datapublic static byte[] toBytes(java.lang.String hex)
Hexadecimal digits: 0123456789 abcdef ABCDEF
hex - a hex string