Closeable, AutoCloseablepublic class NullInputStream extends InputStream
InputStream that contains no bytes.
| Constructor | Description |
|---|---|
NullInputStream() |
Creates a
NullInputStream. |
| Modifier and Type | Method | Description |
|---|---|---|
int |
available() |
This implementation returns
0, always. |
int |
read() |
This implementation returns
-1 (EOF), always. |
long |
skip(long pOffset) |
This implementation returns
0, always. |
close, mark, markSupported, read, read, readAllBytes, readNBytes, reset, transferTopublic int read()
throws IOException
-1 (EOF), always.read in class InputStream-1IOExceptionpublic int available()
throws IOException
0, always.available in class InputStream0IOExceptionpublic long skip(long pOffset)
throws IOException
0, always.skip in class InputStream0IOExceptionCopyright © 2018. All rights reserved.