public class NullInputStream extends InputStream
Modifier and Type | Field and Description |
---|---|
boolean |
throwException
True if attempting to read from the stream should throw an
IOException . |
Constructor and Description |
---|
NullInputStream()
Create an empty null input stream.
|
Modifier and Type | Method and Description |
---|---|
int |
read() |
available, close, mark, markSupported, read, read, reset, skip
public boolean throwException
IOException
.
False to simply return end of file.public int read() throws IOException
read
in class InputStream
IOException