public class Base64EncodingStringBufferOutputStream extends AbstractBase64EncodingOutputStream
OutputStream
implementation that writes base64 encoded data to a StringBuffer
.Constructor and Description |
---|
Base64EncodingStringBufferOutputStream(StringBuffer buffer)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doClose()
Close the underlying stream, if applicable.
|
protected void |
doFlush()
Flush the underlying stream, if applicable.
|
protected void |
doWrite(byte[] b)
Write base64 encoded data.
|
protected void |
flushBuffer()
Write any pending data to the underlying stream, if applicable.
|
close, complete, flush, write, write
write
public Base64EncodingStringBufferOutputStream(StringBuffer buffer)
buffer
- the buffer to append the encoded data toprotected void doWrite(byte[] b) throws IOException
AbstractBase64EncodingOutputStream
doWrite
in class AbstractBase64EncodingOutputStream
b
- a byte array of length 4IOException
- if an I/O error occursprotected void flushBuffer() throws IOException
AbstractBase64EncodingOutputStream
flushBuffer
in class AbstractBase64EncodingOutputStream
IOException
- if an I/O error occursprotected void doClose() throws IOException
AbstractBase64EncodingOutputStream
doClose
in class AbstractBase64EncodingOutputStream
IOException
- if an I/O error occursprotected void doFlush() throws IOException
AbstractBase64EncodingOutputStream
doFlush
in class AbstractBase64EncodingOutputStream
IOException
- if an I/O error occursCopyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.