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

## org.openide.util.io
Class NullInputStream

    java.lang.Object
      java.io.InputStream
          org.openide.util.io.NullInputStream

All Implemented Interfaces:
  Closeable

    public class NullInputStream

extends InputStream

Input stream that is always empty.

Field Summary
`boolean` | `throwException` True if attempting to read from the stream should throw an `IOException`.

Constructor Summary
`NullInputStream()` Create an empty null input stream.

Method Summary
`int` | `read()`

Methods inherited from class java.io.InputStream
`available, close, mark, markSupported, read, read, reset, skip`

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

Field Detail

### throwException

    public boolean throwException

  True if attempting to read from the stream should throw an `IOException`. False to simply return end of file.

Constructor Detail

### NullInputStream

    public NullInputStream()

  Create an empty null input stream.

Method Detail

### read

    public int read()
             throws IOException

  Specified by:
    `read` in class `InputStream`
  Throws:
    `IOException`

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

Built on December 7 2006. | Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.