public class Base64
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static byte[] |
base64ToInt
This array is a lookup table that translates unicode characters
drawn from the "Base64 Alphabet" (as specified in Table 1 of RFC 2045)
into their 6-bit positive integer equivalents.
|
private static char[] |
intToBase64
This array is a lookup table that translates 6-bit positive integer
index values into their "Base64 Alphabet" equivalents as specified
in Table 1 of RFC 2045.
|
Constructor and Description |
---|
Base64() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
base64ToByteArray(java.lang.String s) |
private static int |
base64toInt(char c,
byte[] alphaToInt)
Translates the specified character, which is assumed to be in the
"Base 64 Alphabet" into its equivalent 6-bit positive integer.
|
static java.lang.String |
byteArrayToBase64(byte[] a,
int offset,
int len) |
private static final char[] intToBase64
private static final byte[] base64ToInt
public static java.lang.String byteArrayToBase64(byte[] a, int offset, int len)
public static byte[] base64ToByteArray(java.lang.String s)
private static int base64toInt(char c, byte[] alphaToInt)