public class NoCloseOutputStream extends BufferedOutputStream
buf, count
out
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, write
write
public 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 Closeable
close
in interface AutoCloseable
close
in class FilterOutputStream
IOException
public void realClose() throws IOException
IOException
- if the close failsCopyright © 2016. All rights reserved.