public class Hex extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Hex()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decode(byte[] encoded)
Decodes given
encoded. |
static byte[] |
decode(String encoded)
Decodes given
encoded. |
protected static int |
decodeSingle(byte[] encoded,
int offset) |
protected static int |
decodeSingle(String encoded,
int offset) |
static String |
decodeToString(byte[] encoded)
Decodes given
encoded and returns as a 'UTF-8' encoded String. |
static String |
decodeToString(String encoded)
Decodes given
encoded and returns output as a 'UTF-8' encoded String. |
static byte[] |
encode(byte[] decoded)
Encodes given
decoded. |
static byte[] |
encode(String decoded)
Encodes given
decoded. |
protected static void |
encodeSingle(int decoded,
byte[] encoded,
int offset)
Encodes a single octet.
|
static String |
encodeToString(byte[] decoded)
Encodes given
decoded and returns as an ASCII string. |
static String |
encodeToString(String decoded)
Encodes given
decoded and returns as a string. |
protected static void encodeSingle(int decoded,
byte[] encoded,
int offset)
decoded - the octet to encodeencoded - the byte array to which encoded output are writtenoffset - offset in the arraypublic static byte[] encode(byte[] decoded)
decoded.decoded - the bytes to encodepublic static byte[] encode(String decoded)
decoded.decoded - the string to encodepublic static String encodeToString(byte[] decoded)
decoded and returns as an ASCII string.decoded - the bytes to encodepublic static String encodeToString(String decoded)
decoded and returns as a string.decoded - the string to encodeprotected static int decodeSingle(byte[] encoded,
int offset)
protected static int decodeSingle(String encoded, int offset)
public static byte[] decode(byte[] encoded)
encoded.encoded - the bytes to decodepublic static byte[] decode(String encoded)
encoded.encoded - the string to decodepublic static String decodeToString(byte[] encoded)
encoded and returns as a 'UTF-8' encoded String.encoded - encoded bytesCopyright © 2011-2012. All Rights Reserved.