Class FlushShieldOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable

    public final class FlushShieldOutputStream
    extends ProxyOutputStream
    Re-implements FilterOutputStream.flush() to do nothing.
    Since:
    2.22.0
    • Constructor Detail

      • FlushShieldOutputStream

        public FlushShieldOutputStream​(java.io.OutputStream out)
        Constructs a FlushShieldOutputStream filter for the specified underlying output stream.
        Parameters:
        out - the underlying output stream to be assigned to the field this.out for later use, or null if this instance is to be created without an underlying stream.