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.Stringtranslate(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:ByteTranslatorTranslate a string into a byte array.- Specified by:
translatein 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:ByteTranslatorTranslate a byte array into a String.- Specified by:
translatein classByteTranslator- Parameters:
bytes- the byte array.- Returns:
- the string
- See Also:
ByteTranslator.translate(byte[])
-
-