Class NullPrintStream

All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable

public class NullPrintStream extends PrintStream
Never prints data. Calls never go beyond this class.

This print stream has no destination (file/socket etc.) and all bytes written to it are ignored and lost.

Since:
2.7
  • Field Details

  • Constructor Details

    • NullPrintStream

      @Deprecated public NullPrintStream()
      Deprecated.
      Constructs an instance.