public class NoCloseOutputStream extends FilterOutputStream
Constructor and Description |
---|
NoCloseOutputStream(OutputStream out)
Create a new NoCloseOutputStream with the given output stream a parent.
|
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