|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.InputStream
org.apache.commons.io.input.ClosedInputStream
public class ClosedInputStream
Closed input stream. This stream returns -1 to all attempts to read something from the stream.
Typically uses of this class include testing for corner cases in methods
that accept input streams and acting as a sentinel value instead of a
null input stream.
| Field Summary | |
|---|---|
static ClosedInputStream |
CLOSED_INPUT_STREAM
A singleton. |
| Constructor Summary | |
|---|---|
ClosedInputStream()
|
|
| Method Summary | |
|---|---|
int |
read()
Returns -1 to indicate that the stream is closed. |
| 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 |
|---|
public static final ClosedInputStream CLOSED_INPUT_STREAM
| Constructor Detail |
|---|
public ClosedInputStream()
| Method Detail |
|---|
public int read()
read in class java.io.InputStream
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||