|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
org.apache.http.impl.io.IdentityInputStream
public class IdentityInputStream
A stream for reading from a session input buffer.
| Constructor Summary | |
|---|---|
IdentityInputStream(SessionInputBuffer in)
|
|
| Method Summary | |
|---|---|
int |
available()
Returns a int representing then number of bytes that are available before this InputStream will block. |
void |
close()
Close the InputStream. |
int |
read()
Reads a single byte from this InputStream and returns the result as an int. |
int |
read(byte[] b,
int off,
int len)
Reads at most length bytes from the Stream and stores them
in byte array b starting at offset. |
| Methods inherited from class java.io.InputStream |
|---|
mark, markSupported, read, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IdentityInputStream(SessionInputBuffer in)
| Method Detail |
|---|
public int available()
throws IOException
InputStream
available in class InputStreamIOException - If an error occurs in this InputStream.
public void close()
throws IOException
InputStream
close in interface Closeableclose in class InputStreamIOException - If an error occurs attempting to close this InputStream.
public int read()
throws IOException
InputStream
read in class InputStreamIOException - If the stream is already closed or another IOException
occurs.
public int read(byte[] b,
int off,
int len)
throws IOException
InputStreamlength bytes from the Stream and stores them
in byte array b starting at offset. Answer
the number of bytes actually read or -1 if no bytes were read and end of
stream was encountered.
read in class InputStreamb - the byte array in which to store the read bytes.off - the offset in b to store the read bytes.len - the maximum number of bytes to store in b.
IOException - If the stream is already closed or another IOException
occurs.
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||