public final class Base64 extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
decode(byte[] bytes)
将base64编码的数据解码成原始数据
|
static byte[] |
decode(char[] data)
将base64编码的数据解码成原始数据
|
static String |
decodeToString(byte[] bytes)
解码
|
static String |
decodeToString(String text)
解码
|
static char[] |
encode(byte[] data)
将原始数据编码为base64编码
|
static String |
encode(String text)
编码
|
static String |
encodeToString(byte[] bytes)
将字节数组转换成十六进制,并以字符串的形式返回
128位是指二进制位。
|
static String |
encodeToString(String text)
将字节数组转换成十六进制,并以字符串的形式返回
128位是指二进制位。
|
public static final char[] HEX_ARRAY
public static final char[] ALPHABET
public static String encodeToString(byte[] bytes)
bytes - 字节流public static String encodeToString(String text)
text - 文本public static char[] encode(byte[] data)
data - 数据信息public static byte[] decode(byte[] bytes)
bytes - 数组public static byte[] decode(char[] data)
data - 数据public static String decodeToString(String text)
text - 文本public static String decodeToString(byte[] bytes)
bytes - 字节数组Copyright © 2024. All rights reserved.