|
ZetaGrid v1.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--zeta.util.Base64
Base64 is a system for representing raw byte data as ASCII characters. RFC 1521 is NOT implemented since the characters '-','.','*' are used instead of '+','/','=' Then the encoded data can be used in URL.
| Field Summary | |
private static byte[] |
decodeMap
Decodes a character to an integer less than 64 and returns -1 for a not defined character |
private static char[] |
encodeMap
Converts an integer less than 64 to a character |
private static char |
ENCODING_62
|
private static char |
ENCODING_63
|
static char |
PAD
|
| Constructor Summary | |
Base64()
|
|
| Method Summary | |
static byte[] |
decode(java.lang.String encodedData)
Decodes Base64 data. |
static java.lang.String |
encode(byte[] data)
Encodes a string into Base64 format. |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static char PAD
private static char ENCODING_62
private static char ENCODING_63
private static byte[] decodeMap
private static char[] encodeMap
| Constructor Detail |
public Base64()
| Method Detail |
public static java.lang.String encode(byte[] data)
data - a raw byte data to be encoded.
public static byte[] decode(java.lang.String encodedData)
encodedData - string containing the Base64 encoded data with a length equal to 0 mod 4.
java.lang.IllegalArgumentException - if the input is not valid Base64 encoded data.public static void main(java.lang.String[] args)
|
ZetaGrid v1.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||