public class Base64
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static java.lang.String |
charSet |
(package private) static byte[] |
encodeData |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decode(java.lang.String s)
A Base64 decoder.
|
static java.lang.String |
encode(byte[] src)
base-64 encode a byte array
|
static java.lang.String |
encode(byte[] src,
int start,
int length)
base-64 encode a byte array
|
static java.lang.String |
encode(java.lang.String s)
base-64 encode a string
|
public static java.lang.String encode(java.lang.String s)
s - The ascii string to encodepublic static java.lang.String encode(byte[] src)
src - The byte array to encodepublic static java.lang.String encode(byte[] src,
int start,
int length)
src - The byte array to encodestart - The starting indexlen - The number of bytespublic static byte[] decode(java.lang.String s)
s - a Base64 encoded string