|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.InputStream | +--rabbit.proxy.WebStream
This class reads data from the web.
Constructor Summary | |
WebStream(HTTPHeader header)
Deprecated. Create a new WebStream for the given HTTPHeader. |
Method Summary | |
int |
available()
Deprecated. Get the number of bytes available without blocking. |
void |
close()
Deprecated. Close this stream. |
void |
mark(int readlimit)
Deprecated. Mark this stream. |
boolean |
markSupported()
Deprecated. Does this stream support marking? |
int |
read()
Deprecated. Read a byte |
int |
read(byte[] b)
Deprecated. Read bytes into the given array. |
int |
read(byte[] b,
int off,
int len)
Deprecated. Read bytes into the given array. |
void |
reset()
Deprecated. Reset this stream to a previous point. |
long |
skip(long n)
Deprecated. skip n bytes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WebStream(HTTPHeader header) throws java.io.IOException
header
- the request made.java.io.IOException
- if the connection couldnt be made correctly.Method Detail |
public int read() throws java.io.IOException
read
in class java.io.InputStream
public int available() throws java.io.IOException
available
in class java.io.InputStream
public int read(byte[] b) throws java.io.IOException
read
in class java.io.InputStream
b
- the byte array to put data in.public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
b
- the byte array to put data in.off
- the starting offset of b.len
- the maximum number of bytes to read.public long skip(long n) throws java.io.IOException
skip
in class java.io.InputStream
n
- the number of bytes to skip.public void close() throws java.io.IOException
close
in class java.io.InputStream
public void mark(int readlimit)
mark
in class java.io.InputStream
readlimit
- set the mark.public void reset() throws java.io.IOException
reset
in class java.io.InputStream
public boolean markSupported()
markSupported
in class java.io.InputStream
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |