public abstract class Base64 extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected static String |
ORDERED
Special "ordered" dialect of Base64 described in
RFC1940.
|
protected static String |
STANDARD
Standard Base64 encoding as described in the Section 3 of
RFC3548.
|
protected static String |
URL_SAFE
Base64-like encoding that is URL-safe as described in the Section 4 of
RFC3548.
|
| 构造器和说明 |
|---|
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.
|
protected static final String STANDARD
protected static final String URL_SAFE
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)
[Web Site]