org.xwt
Class HTTP.HTTPInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.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
Fields inherited from class java.io.FilterInputStream |
in |
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 |
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