Class 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.