Class NullOutputStream

  • All Implemented Interfaces:
    Closeable, Flushable, AutoCloseable


    public class NullOutputStream
    extends OutputStream
    This OutputStream does not write any data. (All the methods in this object are empty.)

    This can be used in combination with a MeasuredOutputStream to measure the length of something being written.

    • Constructor Detail

      • NullOutputStream

        public NullOutputStream()
    • Method Detail

      • close

        public void close()
      • flush

        public void flush()
      • write

        public void write(byte[] b,
                          int off,
                          int len)
      • write

        public void write(byte[] b)