public final class NullInputStream extends InputStream
| Constructor and Description |
|---|
NullInputStream()
Construct a null input stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read()
Read a byte, which you can't do, so you always get -1 to indicate end-of-file.
|
available, mark, markSupported, read, read, reset, skippublic int read()
throws IOException
read in class InputStreamIOException - If the stream is closed.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright © 1999–2017 Apache OODT. All rights reserved.