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, skip
public int read() throws IOException
read
in class InputStream
IOException
- If the stream is closed.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
Copyright © 1999–2017 Apache OODT. All rights reserved.