public abstract class Base64 extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected static String |
Base64Chars |
| 构造器和说明 |
|---|
Base64() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
base64Decode(String s)
Decoding a string to a string follow the Base64 regular.
|
static byte[] |
base64DecodeToArray(String s)
Decoding a string to a byte array follow the Base64 regular
|
static String |
base64Encode(String s)
使用UTF-8编码进行Base64编码
|
static String |
base64EncodeFoArray(byte[] s)
Encoding a byte array to a string follow the Base64 regular.
|
public static String base64Encode(String s)
s - 要编码的原始数据public static String base64EncodeFoArray(byte[] s)
public static String base64Decode(String s)
public static byte[] base64DecodeToArray(String s)
Copyright © 2022. All rights reserved.