|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaxx.runtime.Base64Coder
public class Base64Coder
A Base64 Encoder/Decoder.
This class is used to encode and decode data in Base64 format as described in RFC 1521. This is "Open Source" software and released under the GNU/LGPL license.
| Method Summary | |
|---|---|
static byte[] |
decode(char[] in)
Decodes a byte array from Base64 format. |
static byte[] |
decode(java.lang.String s)
Decodes a byte array from Base64 format. |
static java.lang.String |
decodeString(java.lang.String s)
Decodes a string from Base64 format. |
static java.lang.Object |
deserialize(java.lang.String s,
boolean gzip)
Read the object from Base64 string. |
static char[] |
encode(byte[] in)
Encodes a byte array into Base64 format. |
static char[] |
encode(byte[] in,
int iLen)
Encodes a byte array into Base64 format. |
static java.lang.String |
encodeString(java.lang.String s)
Encodes a string into Base64 format. |
static java.lang.String |
serialize(java.lang.Object o,
boolean gzip)
Write the object to a Base64 string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.Object deserialize(java.lang.String s,
boolean gzip)
throws java.io.IOException,
java.lang.ClassNotFoundException
s - the string representation of serialized object.gzip - if gzip stream
java.io.IOException - if any io pb
java.lang.ClassNotFoundException - if class not found ?
public static java.lang.String serialize(java.lang.Object o,
boolean gzip)
throws java.io.IOException
o - the object to serializegzip - if gzip stream
java.io.IOException - if any io pbpublic static java.lang.String encodeString(java.lang.String s)
s - a String to be encoded.
public static char[] encode(byte[] in)
in - an array containing the data bytes to be encoded.
public static char[] encode(byte[] in,
int iLen)
in - an array containing the data bytes to be encoded.iLen - number of bytes to process in in.
public static java.lang.String decodeString(java.lang.String s)
s - a Base64 String to be decoded.
java.lang.IllegalArgumentException - if the input is not valid Base64 encoded data.public static byte[] decode(java.lang.String s)
s - a Base64 String to be decoded.
java.lang.IllegalArgumentException - if the input is not valid Base64 encoded data.public static byte[] decode(char[] in)
in - a character array containing the Base64 encoded data.
java.lang.IllegalArgumentException - if the input is not valid Base64 encoded data.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||