| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int[] | DEC
Table for HEX to DEC byte translation. |
| pack-priv static final byte[] | HEX
Table for DEC to HEX byte translation. |
| pack-priv static final boolean[] | IS_HEX_DIGIT
Table "isHexDigit". |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static byte[] | |
| public static String | convert(byte[]
Byte array representation bytes)Convert a byte array into a printable format containing a String of hexadecimal digit characters (two per byte). |
| public static int | convert2Int(byte[]
Byte array containing exactly four hexadecimal digits hex)Convert 4 hex digits to an int, and return the number of converted bytes. |
| private static char | |
| public static int[] | |
| public static int | |
| public static int | |
| public static boolean | |
| public static boolean |
| DEC | back to summary |
|---|---|
| pack-priv static final int[] DEC Table for HEX to DEC byte translation. | |
| HEX | back to summary |
|---|---|
| pack-priv static final byte[] HEX Table for DEC to HEX byte translation. | |
| IS_HEX_DIGIT | back to summary |
|---|---|
| pack-priv static final boolean[] IS_HEX_DIGIT Table "isHexDigit". | |
| HexUtils | back to summary |
|---|---|
| public HexUtils() | |
| convert | back to summary |
|---|---|
| public static byte[] convert(String digits) Convert a String of hexadecimal digits into the corresponding byte array by encoding each two hexadecimal digits as a byte.
| |
| convert | back to summary |
|---|---|
| public static String convert(byte[] bytes) Convert a byte array into a printable format containing a String of hexadecimal digit characters (two per byte).
| |
| convert2Int | back to summary |
|---|---|
| public static int convert2Int(byte[] hex) Convert 4 hex digits to an int, and return the number of converted bytes.
| |
| convertDigit | back to summary |
|---|---|
| private static char convertDigit(int value) [Private] Convert the specified value (0 .. 15) to the corresponding hexadecimal digit.
| |
| getDecBytes | back to summary |
|---|---|
| public static int[] getDecBytes() | |
| hexDigit2Dec | back to summary |
|---|---|
| public static int hexDigit2Dec(byte hexDigit) | |
| hexDigit2Dec | back to summary |
|---|---|
| public static int hexDigit2Dec(int hexDigit) | |
| isHexDigit | back to summary |
|---|---|
| public static boolean isHexDigit(byte c) | |
| isHexDigit | back to summary |
|---|---|
| public static boolean isHexDigit(int c) | |