|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.util.Base64
public class Base64
Base64 provides Base64 encoding/decoding of strings and streams.
| Method Summary | |
|---|---|
static long |
calcEncodedLength(long dataLength)
Calculates the size (i.e. |
static void |
decode(char[] chars,
int off,
int len,
OutputStream out)
Decode base64 encoded data. |
static void |
decode(char[] chars,
OutputStream out)
Decode base64 encoded data. |
static void |
decode(InputStream in,
OutputStream out)
Decode base64 encoded data. |
static void |
decode(Reader reader,
OutputStream out)
Decode base64 encoded data. |
static void |
decode(String data,
OutputStream out)
Decode base64 encoded data. |
static void |
encode(byte[] data,
int off,
int len,
Writer writer)
Outputs base64 representation of the specified data to a Writer. |
static void |
encode(InputStream in,
OutputStream out)
Outputs base64 representation of the specified stream data to an OutputStream. |
static void |
encode(InputStream in,
Writer writer)
Outputs base64 representation of the specified stream data to a Writer. |
static long |
guessDecodedLength(long encLength)
Pessimistically guesses the size (i.e. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static long calcEncodedLength(long dataLength)
dataLength - length (i.e. number of bytes) of the data to be encoded
public static long guessDecodedLength(long encLength)
encLength - length (i.e. number of bytes) of the base64 encoded data
public static void encode(InputStream in,
Writer writer)
throws IOException
Writer.
in - stream data to be encodedwriter - writer to output the encoded data
IOException - if an i/o error occurs
public static void encode(InputStream in,
OutputStream out)
throws IOException
OutputStream.
in - stream data to be encodedout - stream where the encoded data should be written to
IOException - if an i/o error occurs
public static void encode(byte[] data,
int off,
int len,
Writer writer)
throws IOException
Writer.
data - data to be encodedoff - offset within data at which to start encodinglen - length of data to encodewriter - writer to output the encoded data
IOException - if an i/o error occurs
public static void decode(Reader reader,
OutputStream out)
throws IOException
reader - reader for the base64 encoded data to be decodedout - stream where the decoded data should be written to
IOException - if an i/o error occurs
public static void decode(InputStream in,
OutputStream out)
throws IOException
in - inputstream of the base64 encoded data to be decodedout - stream where the decoded data should be written to
IOException - if an i/o error occurs
public static void decode(String data,
OutputStream out)
throws IOException
data - the base64 encoded data to be decodedout - stream where the decoded data should be written to
IOException - if an i/o error occurs
public static void decode(char[] chars,
OutputStream out)
throws IOException
chars - the base64 encoded data to be decodedout - stream where the decoded data should be written to
IOException - if an i/o error occurs
public static void decode(char[] chars,
int off,
int len,
OutputStream out)
throws IOException
chars - the base64 encoded data to be decodedoff - offset within data at which to start decodinglen - length of data to decodeout - stream where the decoded data should be written to
IOException - if an i/o error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||