Package org.jfree.report.util
Class NoCloseOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- org.jfree.report.util.NoCloseOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class NoCloseOutputStream extends java.io.FilterOutputStreamA Wrapper stream that does never calls close on its parent. This implementation is needed when creating ZipOutputStream, as the final ZipDirectory is written when close is called on the ZipOutputSteam.- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Constructor Description NoCloseOutputStream(java.io.OutputStream out)Create a new NoCloseOutputStream with the given output stream a parent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes this output stream and releases any system resources associated with the stream, but does not close the underlying output stream.
-
-
-
Method Detail
-
close
public void close() throws java.io.IOExceptionCloses this output stream and releases any system resources associated with the stream, but does not close the underlying output stream. Theclosemethod ofFilterOutputStreamcalls itsflushmethod.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.FilterOutputStream- Throws:
java.io.IOException- if an I/O error occurs.- See Also:
FilterOutputStream.flush(),FilterOutputStream.out
-
-