| Modifier and Type | Field and Description |
|---|---|
| private static final HexEncoder |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static byte[] | Returns: a byte array representing the decoded data.decode the Hex encoded input data. |
| public static byte[] | |
| public static int | Returns: the number of bytes produced.decode the Hex encoded String data writing it to the given output stream, whitespace characters will be ignored. |
| public static byte[] | Returns: a byte array representing the decoded data.Decode the hexadecimal-encoded string strictly i.e. any non-hexadecimal characters will be considered an error. |
| public static byte[] | Returns: a byte array representing the decoded data.Decode the hexadecimal-encoded string strictly i.e. any non-hexadecimal characters will be considered an error. |
| public static byte[] | Returns: a byte array containing the Hex encoded data.encode the input data producing a Hex encoded byte array. |
| public static byte[] | Returns: a byte array containing the Hex encoded data.encode the input data producing a Hex encoded byte array. |
| public static int | Returns: the number of bytes produced.Hex encode the byte data writing it to the given output stream. |
| public static int | Returns: the number of bytes produced.Hex encode the byte data writing it to the given output stream. |
| public static String | |
| public static String |
| encoder | back to summary |
|---|---|
| private static final HexEncoder encoder | |
| Hex | back to summary |
|---|---|
| public Hex() | |
| decode | back to summary |
|---|---|
| public static byte[] decode(byte[] data) decode the Hex encoded input data. It is assumed the input data is valid.
| |
| decode | back to summary |
|---|---|
| public static byte[] decode(String data) decode the Hex encoded String data - whitespace will be ignored.
| |
| decode | back to summary |
|---|---|
| public static int decode(String data, OutputStream out) throws IOException decode the Hex encoded String data writing it to the given output stream, whitespace characters will be ignored.
| |
| decodeStrict | back to summary |
|---|---|
| public static byte[] decodeStrict(String str) Decode the hexadecimal-encoded string strictly i.e. any non-hexadecimal characters will be considered an error.
| |
| decodeStrict | back to summary |
|---|---|
| public static byte[] decodeStrict(String str, int off, int len) Decode the hexadecimal-encoded string strictly i.e. any non-hexadecimal characters will be considered an error.
| |
| encode | back to summary |
|---|---|
| public static byte[] encode(byte[] data) encode the input data producing a Hex encoded byte array.
| |
| encode | back to summary |
|---|---|
| public static byte[] encode(byte[] data, int off, int length) encode the input data producing a Hex encoded byte array.
| |
| encode | back to summary |
|---|---|
| public static int encode(byte[] data, OutputStream out) throws IOException Hex encode the byte data writing it to the given output stream.
| |
| encode | back to summary |
|---|---|
| public static int encode(byte[] data, int off, int length, OutputStream out) throws IOException Hex encode the byte data writing it to the given output stream.
| |
| toHexString | back to summary |
|---|---|
| public static String toHexString(byte[] data) | |
| toHexString | back to summary |
|---|---|
| public static String toHexString(byte[] data, int off, int length) | |