public class BufferingOutputStream extends OutputStream
The stream zeroes out the internal buffer on each flush.
| Constructor and Description |
|---|
BufferingOutputStream(OutputStream other)
Create a buffering stream with the default buffer size (4096).
|
BufferingOutputStream(OutputStream other,
int bufferSize)
Create a buffering stream with a specified buffer size.
|
public BufferingOutputStream(OutputStream other)
other - output stream to be wrapped.public BufferingOutputStream(OutputStream other, int bufferSize)
other - output stream to be wrapped.bufferSize - size in bytes for internal buffer.public void write(byte[] bytes,
int offset,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOException - on error.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionCopyright © 2015–2016 The veraPDF Consortium. All rights reserved.