public class HexCodec
extends java.lang.Object
Constructor and Description |
---|
HexCodec() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(java.lang.CharSequence value,
int start)
Turns a HEX based char sequence into a Byte array
|
static java.lang.String |
encode(byte[] bytes,
char[] prefix)
Encodes a byte array into a String encoded with Hex values.
|
public static byte[] decode(java.lang.CharSequence value, int start)
value
- string to work onstart
- position to start withpublic static java.lang.String encode(byte[] bytes, char[] prefix)
bytes
- the byte array to work onprefix
- a prefix to add to string