Modifier | Constructor and Description |
---|---|
protected |
Base64.Decoder(int pBufLen)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected Base64.Decoder(int pBufLen)
pBufLen
- The decoders buffer size. The decoder will
store up to this number of decoded bytes before invoking
writeBuffer(byte[],int,int)
.protected abstract void writeBuffer(byte[] pBuffer, int pOffset, int pLen) throws IOException
pBuffer
- The byte array being written.pOffset
- Offset of the first byte being written.pLen
- Number of bytes being written.IOException
- Writing to the destination failed.public void write(char[] pData, int pOffset, int pLen) throws IOException
pData
- The character array being decoded.pOffset
- Offset of first character being decoded.pLen
- Number of characters being decoded.Base64.DecodingException
- Decoding failed.IOException
- An invocation of the writeBuffer(byte[],int,int)
method failed.public void flush() throws IOException
writeBuffer(byte[],int,int)
.Base64.DecodingException
- Decoding failed (Unexpected end of file).IOException
- An invocation of the writeBuffer(byte[],int,int)
method failed.Copyright © 2005-2016 Apache Software Foundation. All Rights Reserved.