org.apache.commons.io.input
public class ClosedInputStream extends InputStream
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.
Since: Commons IO 1.4
Version: $Id: ClosedInputStream.java 601751 2007-12-06 14:55:45Z niallp $
Field Summary | |
---|---|
static ClosedInputStream | CLOSED_INPUT_STREAM
A singleton. |
Method Summary | |
---|---|
int | read()
Returns -1 to indicate that the stream is closed.
|
Returns: always -1