站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 5.5.1

NullInputStream (NetBeans Utilities API) - NetBeans API Javadoc 5.5.1

org.openide.util 6.8.31

org.openide.util.io
Class NullInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by 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

org.openide.util 6.8.31

Built on March 26 2007.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.