public class Base64
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static byte[] |
ALPHASET |
private static int[] |
CODES |
private static int |
I2O6 |
private static int |
I4O4 |
private static int |
I6O2 |
private static int |
O2I6 |
private static int |
O4I4 |
private static int |
O6I2 |
Constructor and Description |
---|
Base64() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(byte[] eData)
Dencodes a com.rometools.rome.io.impl.Base64 byte array.
|
static java.lang.String |
decode(java.lang.String s)
Decodes a base 64 String into a String.
|
static byte[] |
encode(byte[] dData)
Encodes a byte array into a base 64 byte array.
|
static java.lang.String |
encode(java.lang.String s)
Encodes a String into a base 64 String.
|
static void |
main(java.lang.String[] args) |
private static final byte[] ALPHASET
private static final int I6O2
private static final int O6I2
private static final int I4O4
private static final int O4I4
private static final int I2O6
private static final int O2I6
private static final int[] CODES
public static java.lang.String encode(java.lang.String s)
s
- String to encode.public static java.lang.String decode(java.lang.String s) throws java.lang.IllegalArgumentException
s
- String to decode.java.lang.IllegalArgumentException
- thrown if the given byte array was not valid
com.rometools.rome.io.impl.Base64 encoding.public static byte[] encode(byte[] dData)
dData
- byte array to encode.public static byte[] decode(byte[] eData)
eData
- byte array to decode.java.lang.IllegalArgumentException
- thrown if the given byte array was not valid
com.rometools.rome.io.impl.Base64 encoding.public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception