JBoss STDIO 1.0.0.GA

org.jboss.stdio
Class NullInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.jboss.stdio.NullInputStream
All Implemented Interfaces:
Closeable

public final class NullInputStream
extends InputStream

An input stream that is always in an EOF condition.


Constructor Summary
NullInputStream()
           
 
Method Summary
static NullInputStream getInstance()
          Get the singleton instance.
 int read()
          Read a byte.
 
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
 

Constructor Detail

NullInputStream

public NullInputStream()
Method Detail

getInstance

public static NullInputStream getInstance()
Get the singleton instance.

Returns:
the null input stream instance

read

public int read()
Read a byte. Always returns EOF.

Specified by:
read in class InputStream
Returns:
-1 always

JBoss STDIO 1.0.0.GA

Copyright © 2010 JBoss, a division of Red Hat, Inc.