public final class HexUtils extends Object
HexUtils
provides utility methods for hex conversionsModifier and Type | Method and Description |
---|---|
static String |
byteArrayToHexString(byte[] in)
Creates a string representation of the supplied byte array in Hexidecimal
format
|
static String |
byteArrayToHexString(byte[] in,
int start,
int length)
Creates a string representation of the supplied byte array in Hexidecimal
format
|
static byte[] |
hexToByteArray(String hexString)
Convert a hex string into an array of bytes.
|
static boolean |
isHexChar(char current) |
public static String byteArrayToHexString(byte[] in, int start, int length)
in
- the byte array to convert to a hex string.start
- where to begin in the arraylength
- how many bytes from the array to include in the hexidecimal
representationpublic static String byteArrayToHexString(byte[] in)
in
- the byte array to convert to a hex string.public static byte[] hexToByteArray(String hexString)
hexString
- String to be convertedpublic static boolean isHexChar(char current)
Apache Camel