public final class ValueEncoder extends Object
Constructor and Description |
---|
ValueEncoder() |
Modifier and Type | Method and Description |
---|---|
static String |
bytesToHexString(byte[] buf)
Convert a byte array to a string of hexadecimal digits.
|
static String |
bytesToHexString(byte[] buf,
int i,
int length)
Convert a byte array to a string of hexadecimal digits.
|
static int |
bytesToInt(byte[] bytes) |
static long |
bytesToLong(byte[] bytes) |
static String |
byteToHexString(byte a)
Convert a byte to a string of hexadecimal digits.
|
static byte |
hexDigitToByte(char hDigit)
Convert a hexadecimal digit to a byte.
|
static byte[] |
hexStringToBytes(String hex)
Convert a string of hexadecimal digits to a byte array.
|
static byte[] |
intToBytes(int i) |
static String |
intToHexString(int a)
Convert an int to a string of hexadecimal digits.
|
static String |
longToBinString(int a)
Convert an int to a string of binary digits.
|
static String |
longToBinString(long a)
Convert a long to a string of binary digits.
|
static byte[] |
longToBytes(long l) |
static String |
longToHexString(long a)
Convert a long to a string of hexadecimal digits.
|
public static long bytesToLong(byte[] bytes)
public static byte[] longToBytes(long l)
public static int bytesToInt(byte[] bytes)
public static byte[] intToBytes(int i)
public static final String bytesToHexString(byte[] buf)
public static final String bytesToHexString(byte[] buf, int i, int length)
buf[i..i+length-1]
are used.public static final String longToHexString(long a)
public static final String intToHexString(int a)
public static final String byteToHexString(byte a)
public static byte hexDigitToByte(char hDigit)
public static byte[] hexStringToBytes(String hex)
public static final String longToBinString(long a)
public static final String longToBinString(int a)