public class B64Encoder
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static byte[] |
_NATIVE_ALPHABET |
|
static byte[] |
DECODABET |
|
static int |
DECODE |
|
static int |
DONT_BREAK_LINES |
|
static int |
ENCODE |
|
static byte |
EQUALS_SIGN |
|
static byte |
EQUALS_SIGN_ENC |
|
static int |
GZIP |
|
static int |
MAX_LINE_LENGTH |
|
static byte |
NEW_LINE |
|
static int |
NO_OPTIONS |
|
static java.lang.String |
PREFERRED_ENCODING |
|
static byte |
WHITE_SPACE_ENC |
Modifier and Type | Method | Description |
---|---|---|
static byte[] |
B64decode(byte[] source,
int off,
int len) |
|
static byte[] |
B64decode(java.lang.String s) |
|
static byte[] |
B64decodeFromFile(java.lang.String filename) |
|
static boolean |
B64decodeToFile(java.lang.String dataToDecode,
java.lang.String filename) |
|
static java.lang.Object |
B64decodeToObject(java.lang.String encodedObject) |
|
static java.lang.String |
B64encodeBytes(byte[] source) |
|
static java.lang.String |
B64encodeBytes(byte[] source,
int options) |
|
static java.lang.String |
B64encodeBytes(byte[] source,
int off,
int len) |
|
static java.lang.String |
B64encodeBytes(byte[] source,
int off,
int len,
int options) |
|
static java.lang.String |
B64encodeFromFile(java.lang.String filename) |
|
static java.lang.String |
B64encodeObject(java.io.Serializable serializableObject) |
|
static java.lang.String |
B64encodeObject(java.io.Serializable serializableObject,
int options) |
|
static boolean |
B64encodeToFile(byte[] dataToEncode,
java.lang.String filename) |
|
protected static int |
decode4to3(byte[] source,
int srcOffset,
byte[] destination,
int destOffset) |
|
protected static byte[] |
encode3to4(byte[] b4,
byte[] threeBytes,
int numSigBytes) |
|
protected static byte[] |
encode3to4(byte[] source,
int srcOffset,
int numSigBytes,
byte[] destination,
int destOffset) |
public static final int NO_OPTIONS
public static final int ENCODE
public static final int DECODE
public static final int GZIP
public static final int DONT_BREAK_LINES
public static final int MAX_LINE_LENGTH
public static final byte EQUALS_SIGN
public static final byte NEW_LINE
public static final java.lang.String PREFERRED_ENCODING
public static final byte[] _NATIVE_ALPHABET
public static final byte[] DECODABET
public static final byte WHITE_SPACE_ENC
public static final byte EQUALS_SIGN_ENC
protected static byte[] encode3to4(byte[] b4, byte[] threeBytes, int numSigBytes)
protected static byte[] encode3to4(byte[] source, int srcOffset, int numSigBytes, byte[] destination, int destOffset)
public static java.lang.String B64encodeObject(java.io.Serializable serializableObject)
public static java.lang.String B64encodeObject(java.io.Serializable serializableObject, int options)
public static java.lang.String B64encodeBytes(byte[] source)
public static java.lang.String B64encodeBytes(byte[] source, int options)
public static java.lang.String B64encodeBytes(byte[] source, int off, int len)
public static java.lang.String B64encodeBytes(byte[] source, int off, int len, int options)
protected static int decode4to3(byte[] source, int srcOffset, byte[] destination, int destOffset)
public static byte[] B64decode(byte[] source, int off, int len)
public static byte[] B64decode(java.lang.String s)
public static java.lang.Object B64decodeToObject(java.lang.String encodedObject)
public static boolean B64encodeToFile(byte[] dataToEncode, java.lang.String filename)
public static boolean B64decodeToFile(java.lang.String dataToDecode, java.lang.String filename)
public static byte[] B64decodeFromFile(java.lang.String filename)
public static java.lang.String B64encodeFromFile(java.lang.String filename)