Package com.plotsquared.core.util
Class CloseShieldOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
com.plotsquared.core.util.CloseShieldOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
A
FilterOutputStream that shields the underlying stream from
being closed. Useful when passing a stream to code that may call
close(), but the stream needs to remain open for further writing.-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.FilterOutputStream
flush, write, write, writeMethods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
CloseShieldOutputStream
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterOutputStream- Throws:
IOException
-