Class NonClosingOutputStream

java.lang.Object
java.io.OutputStream
net.automatalib.common.util.io.NonClosingOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class NonClosingOutputStream extends OutputStream
A delegating output stream that does not close but flush the delegate output stream. This is mainly useful for scenarios where we want to close wrappers (to free their resources) but do not want to close the source stream.