|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mot.iden.util.Base64
Base64 provide J2ME application to encode and decode with Base64 algorithm
| Field Summary | |
protected static byte[] |
base64Chars
Table of the sixty-four characters that are used as the Base64 alphabet: [A-Za-z0-9+/] |
protected static byte[] |
reverseBase64Chars
Reverse lookup table for the Base64 alphabet. |
| Method Summary | |
static byte[] |
decode(byte[] bytes)
Decode Base64 encoded bytes. |
static void |
decode(java.io.InputStream in,
java.io.OutputStream out)
Provides decoding of base64 streams from InputStream to the OutputStream. |
static byte[] |
encode(byte[] bytes)
Encodes bytes in Base64. |
static void |
encode(java.io.InputStream in,
java.io.OutputStream out,
int breakinterval)
Provides encoding of data from InputStream to base64 via the OutputStream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final byte[] base64Chars
protected static final byte[] reverseBase64Chars
| Method Detail |
public static byte[] encode(byte[] bytes)
bytes - byte[] to encode.
public static void encode(java.io.InputStream in,
java.io.OutputStream out,
int breakinterval)
throws java.io.IOException
in - Stream from which to read data that needs to be encoded.out - Stream to which to write encoded data.
java.io.IOException - if an IO error occurs.public static byte[] decode(byte[] bytes)
bytes - The data to decode.
public static void decode(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
in - Stream to read the data to be decoded.out - Stream to write the decoded data.
java.io.IOException - if an IO error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||