public class Base64
extends java.lang.Object
| 构造器和说明 |
|---|
Base64() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
decode(byte[] data) |
static byte[] |
decode(java.lang.String data) |
static byte[] |
encode(byte[] data) |
static char[] |
encodeToChar(byte[] sArr,
boolean lineSep)
Encodes a raw byte array into a BASE64
char[] representation i accordance with RFC 2045. |
static java.lang.String |
encodeToString(byte[] sArr,
boolean lineSep)
Encodes a raw byte array into a BASE64
String representation i accordance with RFC 2045. |
public static byte[] encode(byte[] data)
public static byte[] decode(byte[] data)
public static byte[] decode(java.lang.String data)
public static final java.lang.String encodeToString(byte[] sArr,
boolean lineSep)
String representation i accordance with RFC 2045.sArr - The bytes to convert. If null or length 0 an empty array will be returned.lineSep - Optional "\r\n" after 76 characters, unless end of file.null.public static final char[] encodeToChar(byte[] sArr,
boolean lineSep)
char[] representation i accordance with RFC 2045.sArr - The bytes to convert. If null or length 0 an empty array will be returned.lineSep - Optional "\r\n" after 76 characters, unless end of file.null.