|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.intarsys.tools.hex.HexTools
public class HexTools
Helper class for faster mapping of bytes to their hex equivalent
| Field Summary | |
|---|---|
static byte[][] |
ByteToHex
ASCII byte values for the hex strings. |
static byte[][] |
byteToHexLower
ASCII byte values for the hex strings. |
| Constructor Summary | |
|---|---|
HexTools()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
bytesToHexString(byte[] data)
|
static java.lang.String |
bytesToHexString(byte[] data,
int offset,
int length)
|
static java.lang.String |
bytesToHexString(byte[] data,
int offset,
int length,
boolean space)
|
static int |
hexDigitToInt(char c)
The numeric value for the hex digit, return -1 if not valid digit |
static byte[] |
hexStringToBytes(java.lang.String hexString)
|
static int |
hexStringToInt(java.lang.String hexString)
|
static boolean |
isHexDigit(char i)
Evaluate to true if i is a valid hex digit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte[][] ByteToHex
public static final byte[][] byteToHexLower
| Constructor Detail |
|---|
public HexTools()
| Method Detail |
|---|
public static java.lang.String bytesToHexString(byte[] data)
public static java.lang.String bytesToHexString(byte[] data,
int offset,
int length)
public static java.lang.String bytesToHexString(byte[] data,
int offset,
int length,
boolean space)
public static int hexDigitToInt(char c)
c - A char representing a hex digit.
public static byte[] hexStringToBytes(java.lang.String hexString)
public static int hexStringToInt(java.lang.String hexString)
public static boolean isHexDigit(char i)
true if i is a valid hex digit
i - A char representing a hex digit.
true if i is a valid hex digit.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||