com.liferay.portal.kernel.util
Class Base64
java.lang.Object
com.liferay.portal.kernel.util.Base64
public class Base64
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Base64
public Base64()
decode
public static byte[] decode(String base64)
encode
public static String encode(byte[] raw)
encode
public static String encode(byte[] raw,
int offset,
int length)
fromURLSafe
public static String fromURLSafe(String base64)
objectToString
public static String objectToString(Object o)
stringToObject
public static Object stringToObject(String s)
stringToObject
public static Object stringToObject(String s,
ClassLoader classLoader)
stringToObjectSilent
public static Object stringToObjectSilent(String s)
stringToObjectSilent
public static Object stringToObjectSilent(String s,
ClassLoader classLoader)
toURLSafe
public static String toURLSafe(String base64)
encodeBlock
protected static char[] encodeBlock(byte[] raw,
int offset,
int lastIndex)
getChar
protected static char getChar(int sixbit)
getValue
protected static int getValue(char c)