| java.lang.Object | ||
| ↳ | java.io.InputStream | |
| ↳ | org.apache.http.impl.io.IdentityInputStream | |
A stream for reading from a session input buffer.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the number of bytes that are available before this stream will
block.
| |||||||||||
Closes this stream.
| |||||||||||
Reads at most
length bytes from this stream and stores them in
the byte array b starting at offset. | |||||||||||
Reads a single byte from this stream and returns it as an integer in the
range from 0 to 255.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.io.InputStream
| |||||||||||
From class java.lang.Object
| |||||||||||
From interface java.io.Closeable
| |||||||||||
Returns the number of bytes that are available before this stream will block. This implementation always returns 0. Subclasses should override and indicate the correct number of bytes available.
| IOException |
|---|
Closes this stream. Concrete implementations of this class should free any resources during close. This implementation does nothing.
| IOException |
|---|
Reads at most length bytes from this stream and stores them in
the byte array b starting at offset.
| b | the byte array in which to store the bytes read. |
|---|---|
| off | the initial position in buffer to store the bytes read
from this stream. |
| len | the maximum number of bytes to store in b. |
| IOException |
|---|
Reads a single byte from this stream and returns it as an integer in the range from 0 to 255. Returns -1 if the end of the stream has been reached. Blocks until one byte has been read, the end of the source stream is detected or an exception is thrown.
| IOException |
|---|