public class Base64 extends Object
| 构造器和说明 |
|---|
Base64() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
decode(byte[] arr)
Decodes BASE64 encoded byte array.
|
byte[] |
decode(char[] arr)
Decodes a BASE64 encoded char array.
|
static byte[] |
decode(String s)
Decodes a BASE64 encoded string.
|
static String |
decodeToString(byte[] arr) |
static String |
decodeToString(String s) |
static byte[] |
encodeToByte(byte[] arr) |
static byte[] |
encodeToByte(byte[] arr,
boolean lineSep)
Encodes a raw byte array into a BASE64
char[]. |
static byte[] |
encodeToByte(String s) |
static byte[] |
encodeToByte(String s,
boolean lineSep) |
static char[] |
encodeToChar(byte[] arr,
boolean lineSeparator)
Encodes a raw byte array into a BASE64
char[]. |
static String |
encodeToString(byte[] arr) |
static String |
encodeToString(byte[] arr,
boolean lineSep)
Encodes a raw byte array into a BASE64
String. |
static String |
encodeToString(String s) |
static String |
encodeToString(String s,
boolean lineSep) |
public static char[] encodeToChar(byte[] arr,
boolean lineSeparator)
char[].lineSeparator - optional CRLF after 76 chars, unless EOF.public static byte[] encodeToByte(String s)
public static byte[] encodeToByte(String s, boolean lineSep)
public static byte[] encodeToByte(byte[] arr)
public static byte[] encodeToByte(byte[] arr,
boolean lineSep)
char[].lineSep - optional CRLF after 76 chars, unless EOF.public static String decodeToString(byte[] arr)
public static byte[] decode(byte[] arr)
public static String encodeToString(byte[] arr)
public static String encodeToString(byte[] arr, boolean lineSep)
String.public static byte[] decode(String s)
public byte[] decode(char[] arr)
Copyright © 2016. All rights reserved.