net.sf.jasperreports.engine.util

## Class NullOutputStream

- java.lang.Object
- - java.io.OutputStream
  - - net.sf.jasperreports.engine.util.NullOutputStream

- All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable

      public class NullOutputStream
      extends java.io.OutputStream

  Output stream implementation that discards all the data.
  Version:
    $Id: NullOutputStream.java 6235 2013-06-07 09:34:51Z lucianc $
  Author:
    Lucian Chirita (lucianc@users.sourceforge.net)

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NullOutputStream()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `write(byte[] b)`
    `void` | `write(byte[] b, int off, int len)`
    `void` | `write(int b)`

    - ### Methods inherited from class java.io.OutputStream

      `close, flush`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### NullOutputStream

          public NullOutputStream()

  - ### Method Detail

    - #### write

          public void write(int b)

      Specified by:
        `write` in class `java.io.OutputStream`

    - #### write

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

      Overrides:
        `write` in class `java.io.OutputStream`

    - #### write

          public void write(byte[] b)

      Overrides:
        `write` in class `java.io.OutputStream`

© 2001-2010 Jaspersoft Corporation www.jaspersoft.com