public class NullInputStream
extends java.io.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. |
public int read()
throws java.io.IOException
-1 (EOF), always.read in class java.io.InputStream-1java.io.IOExceptionpublic int available()
throws java.io.IOException
0, always.available in class java.io.InputStream0java.io.IOExceptionpublic long skip(long pOffset)
throws java.io.IOException
0, always.skip in class java.io.InputStream0java.io.IOExceptionCopyright © 2021. All Rights Reserved.