class Base64Encoder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static char[] |
encodeMap |
Constructor and Description |
---|
Base64Encoder() |
Modifier and Type | Method and Description |
---|---|
static char |
encode(int i) |
static byte |
encodeByte(int i) |
private static char[] |
initEncodeMap() |
static java.lang.String |
print(byte[] input,
int offset,
int len) |
static int |
print(byte[] input,
int offset,
int len,
char[] buf,
int ptr)
Encodes a byte array into a char array by doing base64 encoding.
|
private static char[] initEncodeMap()
public static char encode(int i)
public static byte encodeByte(int i)
public static java.lang.String print(byte[] input, int offset, int len)
public static int print(byte[] input, int offset, int len, char[] buf, int ptr)
ptr+((len+2)/3)*4
, which is the new offset
in the output buffer where the further bytes should be placed.