| Modifier and Type | Field and Description |
|---|---|
| private boolean | closed
Tells if this stream has been closed. |
| private static final String | MESSAGE
Message, modeled after CloseFilterInputStream in the client. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | available()
Overrides java. Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream. |
| private void | |
| public void | close()
Overrides java. Implements java. Closes this input stream and releases any system resources associated with the stream. |
| public int | |
| public int | read(byte[]
the buffer into which the data is read. b)Overrides java. Reads up to |
| public int | read(byte[]
the buffer into which the data is read. b, int the start offset in array off, int b
at which the data is written.the maximum number of bytes to read. len)Overrides java. Reads up to |
| public long | skip(long
the number of bytes to be skipped. n)Overrides java. Skips over and discards |
| closed | back to summary |
|---|---|
| private boolean closed Tells if this stream has been closed. | |
| MESSAGE | back to summary |
|---|---|
| private static final String MESSAGE Message, modeled after CloseFilterInputStream in the client. | |
| CloseFilterInputStream | back to summary |
|---|---|
| public CloseFilterInputStream(InputStream in) | |
| available | back to summary |
|---|---|
| public int available() throws IOException Overrides java. Doc from java. Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream. The next caller might be the same thread or another thread. A single read or skip of this many bytes will not block, but may read or skip fewer bytes.
| |
| checkIfClosed | back to summary |
|---|---|
| private void checkIfClosed() throws IOException Throws exception if this stream has been closed. | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this input stream and releases any system resources associated with the stream.
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Overrides java. Doc from java. Reads the next byte of data from the input stream. The value byte is
returned as an
| |
| read | back to summary |
|---|---|
| public int read(byte[] b) throws IOException Overrides java. Doc from java. Reads up to
| |
| read | back to summary |
|---|---|
| public int read(byte[] b, int off, int len) throws IOException Overrides java. Doc from java. Reads up to
| |
| skip | back to summary |
|---|---|
| public long skip(long n) throws IOException Overrides java. Doc from java. Skips over and discards
| |