public class HexUtil
extends java.lang.Object
| Constructor and Description |
|---|
HexUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
conventBytesToHexString(byte[] data)
Convert bytes to hex string.
|
static java.lang.String |
convertBytesToHexString(byte[] data,
int offset,
int length)
Convert bytes to hex string value (using Big-Endian rule).
|
static byte[] |
convertHexStringToBytes(java.lang.String hexString)
Convert the hex string to bytes.
|
static byte[] |
convertHexStringToBytes(java.lang.String hexString,
int offset,
int endIndex)
Convert the hex string to bytes.
|
static java.lang.String |
convertHexStringToString(java.lang.String hexString)
Convert the hex string to string.
|
static java.lang.String |
convertStringToHexString(java.lang.String data)
Convert the string to hex string value.
|
public static java.lang.String convertStringToHexString(java.lang.String data)
data - is case sensitive.public static java.lang.String conventBytesToHexString(byte[] data)
data - is the bytes.public static java.lang.String convertBytesToHexString(byte[] data,
int offset,
int length)
data - is the bytes.offset - is the offset.length - is the length.public static java.lang.String convertHexStringToString(java.lang.String hexString)
hexString - is the hex string.public static byte[] convertHexStringToBytes(java.lang.String hexString)
hexString - is the hex string.public static byte[] convertHexStringToBytes(java.lang.String hexString,
int offset,
int endIndex)
hexString - is the hex string.offset - is the offset.endIndex - is the end index.