| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] | |
| private static final char[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static byte[] | Returns: the raw byte array.- the hex encoded String to convert. toConvert)Take the incoming character of hex encoded data and convert to the raw byte values. |
| public static byte[] | Returns: the raw byte array.- the hex encoded String to convert. toConvert)Take the incoming String of hex encoded data and convert to the raw byte values. |
| public static byte[] | Returns: the encoded byte array.- the bytes to be encoded. toBeConverted)Take the supplied byte array and convert it to to a byte array of the encoded hex values. |
| public static String | Returns: the hex encoded String.- the bytes to be converted. toBeConverted)Take the supplied byte array and convert it to a hex encoded String. |
| public static void | |
| private static byte |
| HEX_BYTES | back to summary |
|---|---|
| private static final byte[] HEX_BYTES | |
| HEX_CHARS | back to summary |
|---|---|
| private static final char[] HEX_CHARS | |
| HexConverter | back to summary |
|---|---|
| public HexConverter() | |
| convertFromHex | back to summary |
|---|---|
| public static byte[] convertFromHex(final char[] toConvert) Take the incoming character of hex encoded data and convert to the raw byte values. The characters in the incoming array are processed in pairs with two chars of a pair being converted to a single byte.
| |
| convertFromHex | back to summary |
|---|---|
| public static byte[] convertFromHex(final String toConvert) Take the incoming String of hex encoded data and convert to the raw byte values. The characters in the incoming String are processed in pairs with two chars of a pair being converted to a single byte.
| |
| convertToHexBytes | back to summary |
|---|---|
| public static byte[] convertToHexBytes(byte[] toBeConverted) Take the supplied byte array and convert it to to a byte array of the encoded hex values. Each byte on the incoming array will be converted to two bytes on the return array.
| |
| convertToHexString | back to summary |
|---|---|
| public static String convertToHexString(byte[] toBeConverted) Take the supplied byte array and convert it to a hex encoded String.
| |
| main | back to summary |
|---|---|
| public static void main(String[] args) | |
| toByte | back to summary |
|---|---|
| private static byte toByte(final char[] toConvert, final int pos) | |