public class HexTools extends Object
| Modifier and Type | Field and Description |
|---|---|
static byte[][] |
ByteToHex
ASCII byte values for the hex strings.
|
static byte[][] |
byteToHexLower
ASCII byte values for the hex strings.
|
| Constructor and Description |
|---|
HexTools() |
| Modifier and Type | Method and Description |
|---|---|
static String |
bytesToHexDump(byte[] data,
int offset,
int length,
int groupSize,
int groups,
boolean space) |
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 |
public static final byte[][] ByteToHex
public static final byte[][] byteToHexLower
public static String bytesToHexDump(byte[] data, int offset, int length, int groupSize, int groups, boolean space)
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)
c - 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 digiti - A char representing a hex digit.true if i is a valid hex digit.Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.