org.jboss.stdio
Class NullInputStream
java.lang.Object
java.io.InputStream
org.jboss.stdio.NullInputStream
- All Implemented Interfaces:
- Closeable
public final class NullInputStream
- extends InputStream
An input stream that is always in an EOF condition.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullInputStream
public NullInputStream()
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
Copyright © 2010 JBoss, a division of Red Hat, Inc.