public class Hex extends ByteArrayToCharTransformer implements ByteToCharTransformer, ConfigurableTransformer
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
to |
| Constructor and Description |
|---|
Hex() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(int t)
If a transformer can handle more then one destination
format, it can be configured with this.
|
String |
getEncoding()
Returns the encoding that is currently active
|
String |
transform(byte[] bytes)
Transform a bytearray to a string of hexadecimal digits.
|
byte[] |
transformBack(String r)
Transform a string of hexadecimal digits to a bytearray.
|
Map<String,Config> |
transformers()
Used when registering this class as a possible Transformer
|
transform, transform, transformBack, transformBackclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittransform, transform, transformBack, transformBacktoStringpublic void configure(int t)
ConfigurableTransformerto can be null.configure in interface ConfigurableTransformerpublic Map<String,Config> transformers()
transformers in interface ConfigurableTransformerpublic String transform(byte[] bytes)
transform in interface ByteToCharTransformertransform in class ByteArrayToCharTransformerpublic byte[] transformBack(String r)
transformBack in interface ByteToCharTransformertransformBack in class ByteArrayToCharTransformerr - The string to transformIllegalArgumentException - whenever the input string is not correctly formatted.public String getEncoding()
ConfigurableTransformergetEncoding in interface ConfigurableTransformerMMBase 1.9-SNAPSHOT - ${javadoctimestamp}