com.charliemouse.cambozola.shared

Class Base64

public class Base64 extends Object

Method Summary
static Stringencode(byte[] data)
Returns base64 representation of specified byte array.
static Stringencode(byte[] data, int off, int len)
Returns base64 representation of specified byte array.

Method Detail

encode

public static 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 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