    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class org.w3c.www.http.ChunkedInputStream

    java.lang.Object
       |
       +----java.io.InputStream
               |
               +----org.w3c.www.http.ChunkedInputStream

public class ChunkedInputStream
extends InputStream

A Stream that parses and present chunk encoded data. This stream should only be used on top of a buffered input stream, it might be very inefficient otherwise. Chunk encoding is defined in version 1.1 of the HTTP specification.

##

ahead
buf
clen
eof
in
inited
isahead
observer
ps

##

ChunkedInputStream(HttpStreamObserver, InputStream)
ChunkedInputStream(InputStream)

##

available()
close()
finalize()
  Make sure the stream is ultimately closed !
nextChunk(boolean)
  Read in next chunk description.
read()
read(byte[], int, int)
skip(long)

##

in

     protected InputStream in

buf

     protected HttpBuffer buf

ps

     protected ParseState ps

inited

     protected boolean inited

clen

     protected int clen

ahead

     protected int ahead

isahead

     protected boolean isahead

eof

     protected boolean eof

observer

     protected HttpStreamObserver observer

##

ChunkedInputStream

     public ChunkedInputStream(InputStream in) throws IOException

ChunkedInputStream

     public ChunkedInputStream(HttpStreamObserver observer,
                               InputStream in) throws IOException

##

nextChunk

     protected int nextChunk(boolean skipCRLF) throws IOException

  Read in next chunk description. Sets the eof flag to true when reached.

  Returns:
    The length of next incomming chunk of data.

close

     public void close() throws IOException

  Overrides:
    close in class InputStream

read

     public int read() throws IOException

  Overrides:
    read in class InputStream

read

     public int read(byte b[],
                     int off,
                     int len) throws IOException

  Overrides:
    read in class InputStream

available

     public int available() throws IOException

  Overrides:
    available in class InputStream

skip

     public long skip(long n) throws IOException

  Overrides:
    skip in class InputStream

finalize

     public void finalize()

  Make sure the stream is ultimately closed !

  Overrides:
    finalize in class Object

    All Packages  Class Hierarchy  This Package  Previous  Next  Index