Closeable, AutoCloseablepublic class NullInputStream extends InputStream
| Modifier and Type | Field | Description |
|---|---|---|
boolean |
throwException |
True if attempting to read from the stream should throw an
IOException. |
| Constructor | Description |
|---|---|
NullInputStream() |
Create an empty null input stream.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
read() |
available, close, mark, markSupported, read, read, readAllBytes, readNBytes, reset, skip, transferTopublic boolean throwException
IOException.
False to simply return end of file.public int read()
throws IOException
read in class InputStreamIOExceptionBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.