public class Base32Codec extends Object implements Encoder<byte[],String>, Decoder<CharSequence,byte[]>
Modifier and Type | Class and Description |
---|---|
static class |
Base32Codec.Base32Decoder
Base32解码器
|
static class |
Base32Codec.Base32Encoder
Bas32编码器
|
Modifier and Type | Field and Description |
---|---|
static Base32Codec |
INSTANCE |
Constructor and Description |
---|
Base32Codec() |
Modifier and Type | Method and Description |
---|---|
byte[] |
decode(CharSequence encoded)
执行解码
|
byte[] |
decode(CharSequence encoded,
boolean useHex)
解码数据
|
String |
encode(byte[] data)
执行编码
|
String |
encode(byte[] data,
boolean useHex)
编码数据
|
public static Base32Codec INSTANCE
public String encode(byte[] data, boolean useHex)
data
- 数据useHex
- 是否使用Hex Alphabetpublic byte[] decode(CharSequence encoded)
Decoder
decode
in interface Decoder<CharSequence,byte[]>
encoded
- 被解码的数据public byte[] decode(CharSequence encoded, boolean useHex)
encoded
- base32字符串useHex
- 是否使用Hex AlphabetCopyright © 2024. All rights reserved.