|
intarsys runtime library | |||||||||
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 String |
bytesToHexString(byte[] data)
|
static String |
bytesToHexString(byte[] data,
int offset,
int length)
|
static 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(String hexString)
|
static int |
hexStringToInt(String hexString)
|
static boolean |
isHexDigit(char i)
Evaluate to true if i is a valid hex digit |
Methods inherited from class java.lang.Object |
---|
equals, 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 String bytesToHexString(byte[] data)
public static String bytesToHexString(byte[] data, int offset, int length)
public static String bytesToHexString(byte[] data, int offset, int length, boolean space)
public static int hexDigitToInt(char c)
i
- A char representing a hex digit.
public static byte[] hexStringToBytes(String hexString)
public static int hexStringToInt(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.
|
intarsys runtime library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |