public class Base64 extends Object
Modifier and Type | Field and Description |
---|---|
static 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(Reader inputBuffer,
OutputStream outputBuffer)
Decode the next base64 character.
|
void |
decodeStream(Reader inputBuffer,
OutputStream outputBuffer)
Decode an entire stream.
|
byte[] |
decodeString(String inputString)
Decode a string into a byte array.
|
String |
encodeByteArray(byte[] inputByteArray)
Encode a byte array to a string.
|
boolean |
encodeNextWord(InputStream inputStream,
Writer outputWriter)
Encode a single word.
|
void |
encodeStream(InputStream inputStream,
Writer outputWriter)
Encode a full stream, to the end.
|
public static final String _rcsid
protected char[] characterBuffer
protected byte[] byteBuffer
public boolean decodeNextWord(Reader inputBuffer, OutputStream outputBuffer) throws ManifoldCFException
inputBuffer
- is the character input stream.outputBuffer
- is the binary output stream.ManifoldCFException
public void decodeStream(Reader inputBuffer, OutputStream outputBuffer) throws ManifoldCFException
inputBuffer
- is the character input stream.outputBuffer
- is the binary output stream.ManifoldCFException
public byte[] decodeString(String inputString) throws ManifoldCFException
inputString
- is the string.ManifoldCFException
public boolean encodeNextWord(InputStream inputStream, Writer outputWriter) throws ManifoldCFException
inputStream
- is the input binary data.outputWriter
- is the character output stream.ManifoldCFException
public void encodeStream(InputStream inputStream, Writer outputWriter) throws ManifoldCFException
inputStream
- is the input stream.outputWriter
- is the output writer.ManifoldCFException
public String encodeByteArray(byte[] inputByteArray) throws ManifoldCFException
inputByteArray
- is the byte array.ManifoldCFException