public class StringTools
extends java.lang.Object
Constructor and Description |
---|
StringTools() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
fromHex(java.lang.String hexString)
Converts the contents of the given String from hexadecimal to an array of bytes.
|
static java.lang.String |
toHex(byte... hexBytes)
Converts the contents of the given byte array from hexadecimal to a hex String.
|
public static byte[] fromHex(java.lang.String hexString)
hexString
- The hex String to convertpublic static java.lang.String toHex(byte... hexBytes)
hexBytes
- The hex byte array to convert.