com.charliemouse.cambozola.shared
Class Base64

java.lang.Object
  extended by com.charliemouse.cambozola.shared.Base64

public class Base64
extends java.lang.Object


Constructor Summary
Base64()
           
 
Method Summary
static java.lang.String encode(byte[] data)
          Returns base64 representation of specified byte array.
static java.lang.String encode(byte[] data, int off, int len)
          Returns base64 representation of specified byte array.
 
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

encode

public static java.lang.String encode(byte[] data)
Returns base64 representation of specified byte array.

Parameters:
data - The data to be encoded
Returns:
The base64 encoded data

encode

public static java.lang.String encode(byte[] data,
                                      int off,
                                      int len)
Returns base64 representation of specified byte array.

Parameters:
data - The data to be encoded
off - The offset within the data at which to start encoding
len - The length of the data to encode
Returns:
The base64 encoded data