org.xwt
Class HTTP.HTTPInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended byorg.xwt.HTTP.HTTPInputStream
All Implemented Interfaces:
KnownLength
Enclosing class:
HTTP

public class HTTP.HTTPInputStream
extends java.io.FilterInputStream
implements KnownLength

An input stream that represents a subset of a longer input stream. Supports HTTP chunking as well


Nested Class Summary
 
Nested classes inherited from class org.xwt.util.KnownLength
KnownLength.KnownLengthInputStream
 
Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Method Summary
 int available()
           
 void close()
           
 int getContentLength()
           
 int getLength()
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 long skip(long n)
           
 
Methods inherited from class java.io.FilterInputStream
mark, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getContentLength

public int getContentLength()

getLength

public int getLength()
Specified by:
getLength in interface KnownLength

markSupported

public boolean markSupported()

read

public int read(byte[] b)
         throws java.io.IOException
Throws:
java.io.IOException

skip

public long skip(long n)
          throws java.io.IOException
Throws:
java.io.IOException

available

public int available()
              throws java.io.IOException
Throws:
java.io.IOException

read

public int read()
         throws java.io.IOException
Throws:
java.io.IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException