public class NonCloseableBufferedOutputStream extends BufferedOutputStream
BufferedOutputStream that cannot be closed; only flushedbuf, countout| Constructor and Description |
|---|
NonCloseableBufferedOutputStream(OutputStream out)
Creates a new buffered output stream to write data to the
specified underlying output stream.
|
NonCloseableBufferedOutputStream(OutputStream out,
int size)
Creates a new buffered output stream to write data to the
specified underlying output stream with the specified buffer
size.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
flush, write, writewritepublic NonCloseableBufferedOutputStream(OutputStream out)
out - the underlying output stream.public NonCloseableBufferedOutputStream(OutputStream out, int size)
out - the underlying output stream.size - the buffer size.IllegalArgumentException - if size <= 0.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterOutputStreamIOExceptionCopyright © 2022. All rights reserved.