Class CloseShieldOutputStream

java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
com.plotsquared.core.util.CloseShieldOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public final class CloseShieldOutputStream extends FilterOutputStream
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.