java.io.Closeable, java.lang.AutoCloseablepublic class CloseFilterInputStream
extends java.io.FilterInputStream
| Modifier and Type | Field | Description |
|---|---|---|
private boolean |
closed |
Tells if this stream has been closed.
|
private static java.lang.String |
MESSAGE |
Message, modeled after CloseFilterInputStream in the client.
|
| Constructor | Description |
|---|---|
CloseFilterInputStream(java.io.InputStream in) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
available() |
|
private void |
checkIfClosed() |
Throws exception if this stream has been closed.
|
void |
close() |
|
int |
read() |
|
int |
read(byte[] b) |
|
int |
read(byte[] b,
int off,
int len) |
|
long |
skip(long n) |
private static final java.lang.String MESSAGE
private boolean closed
public void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeableclose in class java.io.FilterInputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.FilterInputStreamjava.io.IOExceptionprivate void checkIfClosed()
throws java.io.IOException
java.io.IOExceptionApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.