org.apache.ws.commons.util
public abstract static class Base64.Decoder extends Object
| Constructor Summary | |
|---|---|
| protected | Decoder(int pBufLen) Creates a new instance. |
| Method Summary | |
|---|---|
| void | flush() Indicates, that no more data is being expected. |
| void | write(char[] pData, int pOffset, int pLen) Converts the Base64 encoded character array. |
| protected abstract void | writeBuffer(byte[] pBuffer, int pOffset, int pLen) Called for writing the decoded bytes to the destination. |
Parameters: pBufLen The decoders buffer size. The decoder will
store up to this number of decoded bytes before invoking
(byte[],int,int).
(byte[],int,int).Throws: DecodingException Decoding failed (Unexpected end of file). IOException An invocation of the (byte[],int,int) method failed.
Parameters: pData The character array being decoded. pOffset Offset of first character being decoded. pLen Number of characters being decoded.
Throws: DecodingException Decoding failed. IOException An invocation of the (byte[],int,int)
method failed.
Parameters: pBuffer The byte array being written. pOffset Offset of the first byte being written. pLen Number of bytes being written.
Throws: IOException Writing to the destination failed.