public class Base58Decoder extends ByteArrayDecoder
This class decodes a base58 string as byte array.
Modifier and Type | Field and Description |
---|---|
static String |
TYPE
The encoding name as constant.
|
Constructor and Description |
---|
Base58Decoder()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
decode(String data)
Return the base58 data decoded as byte array.
|
boolean |
supports(String encoding)
Return
true if the encoding is base58 (case insensitive). |
forEncoding
public static final String TYPE
The encoding name as constant.
public boolean supports(String encoding)
Return true
if the encoding
is base58 (case insensitive).
supports
in class ByteArrayDecoder
encoding
- the encoding name to check.true
if the name is base58.public byte[] decode(String data)
Return the base58 data decoded as byte array.
decode
in class ByteArrayDecoder
data
- the string to decode.Copyright © 2020 sw4j.org. All rights reserved.