public class Base64
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_rcsid |
protected byte[] |
byteBuffer
This is a byte buffer which is needed during the encoding process.
|
protected char[] |
characterBuffer
This is a character buffer which is needed during the decoding process.
|
| Constructor and Description |
|---|
Base64()
Construct the encoder/decoder.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
decodeNextWord(java.io.Reader inputBuffer,
java.io.OutputStream outputBuffer)
Decode the next base64 character.
|
void |
decodeStream(java.io.Reader inputBuffer,
java.io.OutputStream outputBuffer)
Decode an entire stream.
|
byte[] |
decodeString(java.lang.String inputString)
Decode a string into a byte array.
|
java.lang.String |
encodeByteArray(byte[] inputByteArray)
Encode a byte array to a string.
|
boolean |
encodeNextWord(java.io.InputStream inputStream,
java.io.Writer outputWriter)
Encode a single word.
|
void |
encodeStream(java.io.InputStream inputStream,
java.io.Writer outputWriter)
Encode a full stream, to the end.
|
public static final java.lang.String _rcsid
protected char[] characterBuffer
protected byte[] byteBuffer
public boolean decodeNextWord(java.io.Reader inputBuffer,
java.io.OutputStream outputBuffer)
throws ManifoldCFException
inputBuffer - is the character input stream.outputBuffer - is the binary output stream.ManifoldCFExceptionpublic void decodeStream(java.io.Reader inputBuffer,
java.io.OutputStream outputBuffer)
throws ManifoldCFException
inputBuffer - is the character input stream.outputBuffer - is the binary output stream.ManifoldCFExceptionpublic byte[] decodeString(java.lang.String inputString)
throws ManifoldCFException
inputString - is the string.ManifoldCFExceptionpublic boolean encodeNextWord(java.io.InputStream inputStream,
java.io.Writer outputWriter)
throws ManifoldCFException
inputStream - is the input binary data.outputWriter - is the character output stream.ManifoldCFExceptionpublic void encodeStream(java.io.InputStream inputStream,
java.io.Writer outputWriter)
throws ManifoldCFException
inputStream - is the input stream.outputWriter - is the output writer.ManifoldCFExceptionpublic java.lang.String encodeByteArray(byte[] inputByteArray)
throws ManifoldCFException
inputByteArray - is the byte array.ManifoldCFException