public class BinaryString
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.util.regex.Pattern |
UUID_PATTERN |
| Constructor and Description |
|---|
BinaryString() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
fromUUIDString(java.lang.String uuid) |
static byte |
toBinaryFromHex(byte ch)
Takes a ASCII digit in the range A-F0-9 and returns
the corresponding integer/ordinal value.
|
static byte[] |
toBytesBinary(java.lang.String in) |
static java.lang.String |
toStringBinary(byte[] b)
Taken from Hbase: base/util/Bytes.java
Removed offset and length, start at 0 and end at last position
Write a printable representation of a byte array.
|
static java.lang.String |
toStringHex(byte[] b) |
static java.lang.String |
toUUIDString(byte[] uuid) |
public static java.lang.String toUUIDString(byte[] uuid)
public static byte[] fromUUIDString(java.lang.String uuid)
public static java.lang.String toStringBinary(byte[] b)
b - array to write outpublic static java.lang.String toStringHex(byte[] b)
public static byte toBinaryFromHex(byte ch)
ch - The hex digit.public static byte[] toBytesBinary(java.lang.String in)