Package org.eclipse.rdf4j.common.io
Class UncloseableOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.eclipse.rdf4j.common.io.UncloseableOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
A wrapper for an output stream to avoid allowing libraries to close output streams unexpectedly using the
close()
method. Instead, they must be closed by the creator using doClose()
.- Author:
- Bart Hanssens
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.FilterOutputStream
flush, write, write, write
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
UncloseableOutputStream
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterOutputStream
- Throws:
IOException
-
doClose
Invoke close on FilterOutputStream parent class.- Throws:
IOException
-