public class NullInputStream extends InputStream
InputStream that contains no bytes.
| Constructor and Description |
|---|
NullInputStream()
Creates a
NullInputStream. |
| Modifier and Type | Method and 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, resetpublic 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 © 2017. All Rights Reserved.