public class base16
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
BASE_16_CHARS |
Modifier | Constructor and Description |
---|---|
private |
base16() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
fromString(java.lang.String str)
Convert a hex-encoded String to binary data, ignoring
whitespace characters. |
static java.lang.String |
toString(byte[] b)
Convert binary data to a hex-encoded String
|
private static final java.lang.String BASE_16_CHARS
public static java.lang.String toString(byte[] b)
b
- An array containing binary datapublic static byte[] fromString(java.lang.String str)
whitespace
characters.
Returns null
str
is null
,
str
- A String containing the encoded data.