public class HexEncoder extends Object implements TextEncoder
| Modifier | Constructor and Description |
|---|---|
protected |
HexEncoder()
Initializes the HexEncoder.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decode(String text)
Decodes the string into a byte array.
|
String |
encode(byte[] bytes)
Encodes the byte array to a string.
|
static HexEncoder |
getInstance()
Returns an instance of a HexEncoder.
|
public static HexEncoder getInstance()
public String encode(byte[] bytes)
encode in interface TextEncoderbytes - the byte arraypublic byte[] decode(String text)
decode in interface TextEncodertext - the encoded text