Class VoidOutputStream

java.lang.Object
java.io.OutputStream
de.tomatengames.util.io.VoidOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class VoidOutputStream extends OutputStream
An OutputStream that ignores all data written to it.

Note that the write(...) methods do not check if the parameters are valid. Closing this stream has no effect.

Since:
1.2
  • Constructor Details

  • 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