com.liferay.portal.kernel.util
Class Base64

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

public class Base64
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
Base64()
           
 
Method Summary
static byte[] decode(java.lang.String base64)
           
static java.lang.String encode(byte[] raw)
           
protected static char[] encodeBlock(byte[] raw, int offset)
           
protected static char getChar(int sixbit)
           
protected static int getValue(char c)
           
static java.lang.String objectToString(java.lang.Object o)
           
static java.lang.Object stringToObject(java.lang.String s)
           
 
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

getChar

protected static char getChar(int sixbit)

getValue

protected static int getValue(char c)

encode

public static java.lang.String encode(byte[] raw)

encodeBlock

protected static char[] encodeBlock(byte[] raw,
                                    int offset)

decode

public static byte[] decode(java.lang.String base64)

objectToString

public static java.lang.String objectToString(java.lang.Object o)

stringToObject

public static java.lang.Object stringToObject(java.lang.String s)