rabbit.proxy
Class WebStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--rabbit.proxy.WebStream

Deprecated. use the rabbit.io.ConnectionHandler to get WebConnections instead.

public class WebStream
extends java.io.InputStream

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

WebStream

public WebStream(HTTPHeader header)
          throws java.io.IOException
Deprecated. 
Create a new WebStream for the given HTTPHeader.
Parameters:
header - the request made.
Throws:
java.io.IOException - if the connection couldnt be made correctly.
Method Detail

read

public int read()
         throws java.io.IOException
Deprecated. 
Read a byte
Overrides:
read in class java.io.InputStream
Returns:
the byte read.

available

public int available()
              throws java.io.IOException
Deprecated. 
Get the number of bytes available without blocking.
Overrides:
available in class java.io.InputStream
Returns:
the number of bytes available.

read

public int read(byte[] b)
         throws java.io.IOException
Deprecated. 
Read bytes into the given array.
Overrides:
read in class java.io.InputStream
Parameters:
b - the byte array to put data in.
Returns:
the number of bytes read.

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Deprecated. 
Read bytes into the given array.
Overrides:
read in class java.io.InputStream
Parameters:
b - the byte array to put data in.
off - the starting offset of b.
len - the maximum number of bytes to read.
Returns:
the number of bytes read.

skip

public long skip(long n)
          throws java.io.IOException
Deprecated. 
skip n bytes.
Overrides:
skip in class java.io.InputStream
Parameters:
n - the number of bytes to skip.

close

public void close()
           throws java.io.IOException
Deprecated. 
Close this stream.
Overrides:
close in class java.io.InputStream

mark

public void mark(int readlimit)
Deprecated. 
Mark this stream.
Overrides:
mark in class java.io.InputStream
Parameters:
readlimit - set the mark.

reset

public void reset()
           throws java.io.IOException
Deprecated. 
Reset this stream to a previous point.
Overrides:
reset in class java.io.InputStream

markSupported

public boolean markSupported()
Deprecated. 
Does this stream support marking?
Overrides:
markSupported in class java.io.InputStream
Returns:
true if mark is supported, false otherwise.