Package com.adaptris.util.text
Class Base58ByteTranslator
- java.lang.Object
-
- com.adaptris.util.text.ByteTranslator
-
- com.adaptris.util.text.Base58ByteTranslator
-
public class Base58ByteTranslator extends ByteTranslator
Simply convert to and from base58.In the adapter configuration file this class is aliased as base58-byte-translator which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Constructor Summary
Constructors Constructor Description Base58ByteTranslator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
translate
public byte[] translate(java.lang.String s)
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
- See Also:
ByteTranslator.translate(java.lang.String)
-
translate
public java.lang.String translate(byte[] bytes)
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
- See Also:
ByteTranslator.translate(byte[])
-
-