com.funambol.platform
Class HttpConnectionAdapter.ChunkedInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.funambol.platform.HttpConnectionAdapter.ChunkedInputStream
All Implemented Interfaces:
java.io.Closeable
Enclosing class:
HttpConnectionAdapter

public static class HttpConnectionAdapter.ChunkedInputStream
extends java.io.InputStream

Wrap a chunked input stream to a standard input stream. NOTE: there is no support for chunk extensions and trailers http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.6.1


Constructor Summary
HttpConnectionAdapter.ChunkedInputStream(java.io.InputStream aStream)
           
 
Method Summary
 int available()
           
 void close()
           
 boolean markSupported()
           
 int read()
           
 
Methods inherited from class java.io.InputStream
mark, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpConnectionAdapter.ChunkedInputStream

public HttpConnectionAdapter.ChunkedInputStream(java.io.InputStream aStream)
                                         throws java.io.IOException
Throws:
java.io.IOException
Method Detail

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.InputStream
Throws:
java.io.IOException

available

public int available()
              throws java.io.IOException
Overrides:
available in class java.io.InputStream
Throws:
java.io.IOException

markSupported

public boolean markSupported()
Overrides:
markSupported in class java.io.InputStream


Copyright © 2001-2009 Funambol.