Class Base64
- java.lang.Object
-
- com.charliemouse.cambozola.shared.Base64
-
public class Base64 extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Base64()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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 encodedoff
- The offset within the data at which to start encodinglen
- The length of the data to encode- Returns:
- The base64 encoded data
-
-