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

## org.jboss.util.stream
Class NullOutputStream

    java.lang.Object
      java.io.OutputStream
          org.jboss.util.stream.NullOutputStream

public final class NullOutputStream
extends OutputStream

A `null` `OutputStream`. All values passed to `write(int)` are discarded. Calls to `flush()` and `close()` are ignored.

All methods are declared NOT to throw `IOException`s.

Version:
  `$Revision: 1.1 $`
Author:
  Jason Dillon

Field Summary
`static NullOutputStream` | `STREAM` A default null output stream.

Constructor Summary
`NullOutputStream()`

Method Summary
`void` | `close()` Non-operation.
`void` | `flush()` Non-operation.
`void` | `write(byte[] bytes)` Non-operation.
`void` | `write(byte[] bytes, int offset, int length)` Non-operation.
`void` | `write(int b)` Non-operation.

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

Field Detail

### STREAM

    public static final NullOutputStream STREAM

  A default null output stream.

Constructor Detail

### NullOutputStream

    public NullOutputStream()

Method Detail

### write

    public void write(int b)

  Non-operation.

### flush

    public void flush()

  Non-operation.

### close

    public void close()

  Non-operation.

### write

    public void write(byte[] bytes)

  Non-operation.

### write

    public void write(byte[] bytes,
                      int offset,
                      int length)

  Non-operation.

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

Copyright © 2002 JBoss Group, LLC. All Rights Reserved.