Package com.adaptris.util.text
Class HexStringByteTranslator
java.lang.Object
com.adaptris.util.text.ByteTranslator
com.adaptris.util.text.HexStringByteTranslator
Simply converts to and from a Hex String
In the adapter configuration file this class is aliased as hex-string-byte-translator which is the preferred alternative to the fully qualified classname when building your configuration.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
HexStringByteTranslator
public HexStringByteTranslator()
-
-
Method Details
-
translate
Description copied from class:ByteTranslator
Translate a string into a byte array.- Specified by:
translate
in classByteTranslator
- Parameters:
s
- the string.- Returns:
- the byte array
- Throws:
IOException
- wrapping any underlying exception
-
translate
Description copied from class:ByteTranslator
Translate a byte array into a String.- Specified by:
translate
in classByteTranslator
- Parameters:
bytes
- the byte array.- Returns:
- the string
- Throws:
IOException
- wrapping any underlying exception
-