Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## edu.emory.mathcs.util.io
Class NullOutputStream

    java.lang.Object
      java.io.OutputStream
          edu.emory.mathcs.util.io.NullOutputStream

public class NullOutputStream
extends java.io.OutputStream

Output stream that ignores all data written. Similar to /dev/null. Typical application is when data sink must be specified even though the application does not care for the data and wants it discarded. For instance, assigning this to `System.setOut(java.io.PrintStream)` suppresses standard output.

Version:
  1.0
Author:
  Dawid Kurzyniec

Constructor Summary
`NullOutputStream()` Creates a new NullOutputStream.

Method Summary
`void` | `close()` Does nothing.
`void` | `flush()` Does nothing.
`void` | `write(byte[] buf, int off, int len)` Does nothing.
`void` | `write(int b)` Does nothing.

Methods inherited from class java.io.OutputStream
`write`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### NullOutputStream

    public NullOutputStream()

  Creates a new NullOutputStream.

Method Detail

### write

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

  Does nothing.

### write

    public void write(int b)

  Does nothing.

### flush

    public void flush()

  Does nothing.

### close

    public void close()

  Does nothing.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD