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.
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.commons.io.output.ProxyOutputStream
afterWrite, beforeWrite, flush, handleIOException, write, write, write
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
CloseBlockerOutputStream
Main constructor.- Parameters:
out
- the underlying stream
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classorg.apache.commons.io.output.ProxyOutputStream
- Throws:
IOException
-