public abstract class AbstractInputStream extends InputStream
| Constructor and Description |
|---|
AbstractInputStream()
Constructs a new instance for subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
checkOpen()
Checks if this instance is closed and throws an IOException if so.
|
void |
close() |
boolean |
isClosed()
Tests whether this instance is closed; if
close() completed successfully. |
void |
setClosed(boolean closed)
Sets whether this instance is closed.
|
available, mark, markSupported, read, read, read, reset, skippublic AbstractInputStream()
void checkOpen()
throws IOException
IOException - if this instance is closed.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic boolean isClosed()
close() completed successfully.public void setClosed(boolean closed)
closed - whether this instance is closed.