Class NoCloseOutputStream
java.lang.Object
java.io.OutputStream
nl.siegmann.epublib.util.NoCloseOutputStream
- All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
OutputStream with the close() disabled.
We write multiple documents to a ZipOutputStream.
Some of the formatters call a close() after writing their data.
We don't want them to do that, so we wrap regular OutputStreams in this NoCloseOutputStream.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class OutputStream
flush, nullOutputStream, write, write
-
Field Details
-
outputStream
-
-
Constructor Details
-
NoCloseOutputStream
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
close
public void close()A close() that does not call it's parent's close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream
-