Class NullOutputStream

java.lang.Object
java.io.OutputStream
com.peterphi.std.io.NullOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public final class NullOutputStream extends OutputStream
An OutputStream which immediately discards all writes
  • Constructor Details

    • NullOutputStream

      public NullOutputStream()
  • Method Details

    • write

      public void write(int b)
      Specified by:
      write in class OutputStream
    • write

      public void write(byte[] b)
      Overrides:
      write in class OutputStream
    • write

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