Closeable
, AutoCloseable
public 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, transferTo
public int read() throws IOException
-1
(EOF), always.read
in class InputStream
-1
IOException
public int available() throws IOException
0
, always.available
in class InputStream
0
IOException
public long skip(long pOffset) throws IOException
0
, always.skip
in class InputStream
0
IOException
Copyright © 2018. All rights reserved.