|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectit.unimo.dbgroup.momis.tools.Base64
Provides encoding of raw bytes to base64-encoded characters, and decoding of base64 characters to raw bytes.
| Field Summary | |
private static char[] |
alphabet
code characters for values 0..63 |
private static byte[] |
codes
lookup table for converting base64 characters to value in range 0..63 |
| Constructor Summary | |
Base64()
|
|
| Method Summary | |
static byte[] |
decode(char[] data)
Decodes a BASE-64 encoded stream to recover the original data. |
static char[] |
encode(byte[] data)
returns an array of base64-encoded characters to represent the passed data array. |
private static java.lang.String |
fromBytes(byte[] data)
Display an array of bytes. |
static void |
main(java.lang.String[] args)
Main routine-test routine. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static char[] alphabet
private static byte[] codes
| Constructor Detail |
public Base64()
| Method Detail |
public static char[] encode(byte[] data)
data - the array of bytes to encode
public static byte[] decode(char[] data)
public static void main(java.lang.String[] args)
private static java.lang.String fromBytes(byte[] data)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||