public class SimpleByteTranslator extends ByteTranslator
In the adapter configuration file this class is aliased as simple-byte-translator which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
SimpleByteTranslator() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
translate(byte[] bytes)
Translate a byte array into a String.
|
byte[] |
translate(java.lang.String s)
Translate a string into a byte array.
|
public byte[] translate(java.lang.String s)
ByteTranslator
translate
in class ByteTranslator
s
- the string.ByteTranslator.translate(java.lang.String)
public java.lang.String translate(byte[] bytes)
ByteTranslator
translate
in class ByteTranslator
bytes
- the byte array.ByteTranslator.translate(byte[])