|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.manifoldcf.core.common.Base64
public class Base64
Class to manage straight and stream conversions to and from base64 encoding.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
Base64()
Construct the encoder/decoder. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String _rcsid
protected char[] characterBuffer
protected byte[] byteBuffer
| Constructor Detail |
|---|
public Base64()
| Method Detail |
|---|
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.
ManifoldCFException
public void decodeStream(java.io.Reader inputBuffer,
java.io.OutputStream outputBuffer)
throws ManifoldCFException
inputBuffer - is the character input stream.outputBuffer - is the binary output stream.
ManifoldCFException
public byte[] decodeString(java.lang.String inputString)
throws ManifoldCFException
inputString - is the string.
ManifoldCFException
public boolean encodeNextWord(java.io.InputStream inputStream,
java.io.Writer outputWriter)
throws ManifoldCFException
inputStream - is the input binary data.outputWriter - is the character output stream.
ManifoldCFException
public void encodeStream(java.io.InputStream inputStream,
java.io.Writer outputWriter)
throws ManifoldCFException
inputStream - is the input stream.outputWriter - is the output writer.
ManifoldCFException
public java.lang.String encodeByteArray(byte[] inputByteArray)
throws ManifoldCFException
inputByteArray - is the byte array.
ManifoldCFException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||