Liferay 6.1.2-ce-ga3

com.liferay.portal.kernel.util
Class Base64

java.lang.Object
  extended by com.liferay.portal.kernel.util.Base64

public class Base64
extends Object


Constructor Summary
Base64()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base64

public Base64()
Method Detail

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)

Liferay 6.1.2-ce-ga3