public class Base64 extends Object
Constructor and Description |
---|
Base64() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(String base64) |
static String |
encode(byte[] raw) |
static String |
encode(byte[] raw,
int offset,
int length) |
protected static char[] |
encodeBlock(byte[] raw,
int offset,
int lastIndex) |
static String |
fromURLSafe(String base64) |
protected static char |
getChar(int sixbit) |
protected static int |
getValue(char c) |
static String |
objectToString(Object o) |
static Object |
stringToObject(String s) |
static Object |
stringToObject(String s,
ClassLoader classLoader) |
static Object |
stringToObjectSilent(String s) |
static Object |
stringToObjectSilent(String s,
ClassLoader classLoader) |
static String |
toURLSafe(String base64) |
public static byte[] decode(String base64)
public static String encode(byte[] raw)
public static String encode(byte[] raw, int offset, int length)
public static Object stringToObject(String s, ClassLoader classLoader)
public static Object stringToObjectSilent(String s, ClassLoader classLoader)
protected static char[] encodeBlock(byte[] raw, int offset, int lastIndex)
protected static char getChar(int sixbit)
protected static int getValue(char c)