public class Base58Encoder extends ByteArrayEncoder
This class encodes a byte array as base58 string.
| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE
The encoding name as constant.
|
| Constructor and Description |
|---|
Base58Encoder()
The default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
encode(byte[] data)
Return the byte array encoded as base58.
|
boolean |
supports(String encoding)
Return
true if the encoding is base58 (case insensitive). |
forEncodingpublic 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 ByteArrayEncoderencoding - the encoding name to check.true if the name is base58.public String encode(byte[] data)
Return the byte array encoded as base58.
encode in class ByteArrayEncoderdata - the byte array to encode.Copyright © 2020 sw4j.org. All rights reserved.