Package org.apache.fop.util
Class CloseBlockerOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.apache.commons.io.output.ProxyOutputStream
org.apache.fop.util.CloseBlockerOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class CloseBlockerOutputStream
extends org.apache.commons.io.output.ProxyOutputStream
This is a decorator to block calls to close() to the underlying stream.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.commons.io.output.ProxyOutputStream
org.apache.commons.io.output.ProxyOutputStream.Builder -
Field Summary
Fields inherited from class java.io.FilterOutputStream
out -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.commons.io.output.ProxyOutputStream
afterWrite, beforeWrite, flush, handleIOException, setReference, write, write, writeMethods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
CloseBlockerOutputStream
Main constructor.- Parameters:
out- the underlying stream
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classorg.apache.commons.io.output.ProxyOutputStream- Throws:
IOException
-