|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.util.Base64
public class Base64
Constructor Summary | |
---|---|
Base64()
|
Method Summary | |
---|---|
static int |
computeEncodedSize(int size)
Compute the base64 encoded size for a stream whose size is specified in the incoming parameter |
static byte[] |
decode(byte[] data)
decode the base 64 encoded input data. |
static java.lang.String |
decode(byte[] data,
java.lang.String charset)
Decode the string and convert back the decoded value into a string using the specified charset. |
static byte[] |
decode(java.lang.String data)
decode the base 64 encoded String data. |
static java.lang.String |
decode(java.lang.String data,
java.lang.String charset)
Decode the string and convert back the decoded value into a string using the specified charset. |
static byte[] |
encode(byte[] data)
encode the input data producong a base 64 encoded byte array. |
static void |
encode(java.io.InputStream is,
java.io.OutputStream os,
int breakLen,
java.lang.String breakStr)
encode the input stream and write the base64 encoded output into the output stream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Base64()
Method Detail |
---|
public static void encode(java.io.InputStream is, java.io.OutputStream os, int breakLen, java.lang.String breakStr) throws java.io.IOException
java.io.IOException
- if the input/output streams cannot be read/writtenpublic static byte[] encode(byte[] data)
public static byte[] decode(byte[] data)
public static byte[] decode(java.lang.String data)
public static java.lang.String decode(java.lang.String data, java.lang.String charset)
public static java.lang.String decode(byte[] data, java.lang.String charset)
public static int computeEncodedSize(int size)
size
- the original size (>=0)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |