public class NoCloseOutputStream extends BufferedOutputStream
buf, countout| Constructor and Description |
|---|
NoCloseOutputStream(OutputStream stream)
Creates a No Close output stream.
|
NoCloseOutputStream(OutputStream stream,
int size)
Creates a No Close output stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
realClose()
Closes the stream (the close method is ignored).
|
flush, write, writewritepublic NoCloseOutputStream(OutputStream stream)
stream - stream to write topublic NoCloseOutputStream(OutputStream stream, int size)
stream - stream to write tosize - buffer sizepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterOutputStreamIOExceptionpublic void realClose()
throws IOException
IOException - if the close failsCopyright © 2016. All rights reserved.