|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.converter.crypto.HexUtils
public final class HexUtils
HexUtils
provides utility methods for hex conversions
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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
representation
public 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |