sunlabs.brazil.util
public class Base64 extends Object
Version: 2.3
Method Summary | |
---|---|
static byte[] | decode(String s)
A Base64 decoder. |
static String | encode(String s)
base-64 encode a string |
static String | encode(byte[] src)
base-64 encode a byte array |
static String | encode(byte[] src, int start, int length)
base-64 encode a byte array |
static void | main(String[] args)
Test the decoder and encoder.
|
Parameters: s a Base64 encoded string
Returns: The byte array eith the decoded result
Parameters: s The ascii string to encode
Returns: The base64 encoded result
Parameters: src The byte array to encode
Returns: The base64 encoded result
Parameters: src The byte array to encode start The starting index len The number of bytes
Returns: The base64 encoded result
Base64 [string]
.