public class NoCloseOutputStream extends FilterOutputStream
Constructor and Description |
---|
NoCloseOutputStream(OutputStream out)
Create a new NoCloseOutputStream with the given output stream a parent.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this output stream and releases any system resources associated with the stream, but does not close the
underlying output stream.
|
flush, write, write, write
public NoCloseOutputStream(OutputStream out)
out
- the parent streampublic void close() throws IOException
close
method of FilterOutputStream
calls its flush
method.close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterOutputStream
IOException
- if an I/O error occurs.FilterOutputStream.flush()
,
FilterOutputStream.out