public final class Hex
extends java.lang.Object
Hex is a set of utilities for working with Hexadecimal Strings.| Modifier and Type | Method and Description |
|---|---|
static byte[] |
toByteArray(java.lang.String s)
Converts a hex string to a byte array.
|
static java.lang.String |
toHexString(byte[] block)
Converts a byte array to a hex string.
|
public static java.lang.String toHexString(byte[] block)
block - the bytes to convertpublic static byte[] toByteArray(java.lang.String s)
s - the string to convert