Class NullOutputStream

  • All Implemented Interfaces:
    Closeable, Flushable, AutoCloseable

    public class NullOutputStream
    extends OutputStream
    Output stream implementation that discards all the data.
    Author:
    Lucian Chirita (lucianc@users.sourceforge.net)
    • Constructor Detail

      • NullOutputStream

        public NullOutputStream()
    • Method Detail

      • write

        public void write​(byte[] b,
                          int off,
                          int len)
        Overrides:
        write in class OutputStream