com.sun.syndication.io.impl
public class Base64 extends Object
Field Summary | |
---|---|
static byte[] | ALPHASET |
static int[] | CODES |
static int | I2O6 |
static int | I4O4 |
static int | I6O2 |
static int | O2I6 |
static int | O4I4 |
static int | O6I2 |
Method Summary | |
---|---|
static String | decode(String s)
Decodes a base 64 String into a String.
|
static byte[] | decode(byte[] eData)
Dencodes a com.sun.syndication.io.impl.Base64 byte array.
|
static String | encode(String s)
Encodes a String into a base 64 String. |
static byte[] | encode(byte[] dData)
Encodes a byte array into a base 64 byte array.
|
static void | main(String[] args) |
Parameters: s String to decode.
Returns: encoded string.
Throws: java.lang.IllegalArgumentException thrown if the given byte array was not valid com.sun.syndication.io.impl.Base64 encoding.
Parameters: eData byte array to decode.
Returns: decoded byte array.
Throws: java.lang.IllegalArgumentException thrown if the given byte array was not valid com.sun.syndication.io.impl.Base64 encoding.
Parameters: s String to encode.
Returns: encoded string.
Parameters: dData byte array to encode.
Returns: encoded byte array.