All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class w3c.www.http.ChunkedInputStream
java.lang.Object
   |
   +----java.io.InputStream
           |
           +----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 ahead
-  
  
-   buf buf
-  
  
-   clen clen
-  
  
-   eof eof
-  
  
-   in in
-  
  
-   inited inited
-  
  
-   isahead isahead
-  
  
-   observer observer
-  
  
-   ps ps
-  
   
  -   ChunkedInputStream(HttpStreamObserver, InputStream) ChunkedInputStream(HttpStreamObserver, InputStream)
-  
  
-   ChunkedInputStream(InputStream) ChunkedInputStream(InputStream)
-  
   
  -   available() available()
-  
  
-   close() close()
-  
  
-   finalize() finalize()
-   Make sure the stream is ultimately closed !
  
-   nextChunk(boolean) nextChunk(boolean)
-   Read in next chunk description.
  
-   read() read()
-  
  
-   read(byte[], int, int) read(byte[], int, int)
-  
  
-   skip(long) skip(long)
-  
   
 in
in
 protected InputStream in
 buf
buf
 protected HttpBuffer buf
 ps
ps
 protected ParseState ps
 inited
inited
 protected boolean inited
 clen
clen
 protected int clen
 ahead
ahead
 protected int ahead
 isahead
isahead
 protected boolean isahead
 eof
eof
 protected boolean eof
 observer
observer
 protected HttpStreamObserver observer
   
 ChunkedInputStream
ChunkedInputStream
 public ChunkedInputStream(InputStream in) throws IOException
 ChunkedInputStream
ChunkedInputStream
 public ChunkedInputStream(HttpStreamObserver observer,
                           InputStream in) throws IOException
   
 nextChunk
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
close
 public void close() throws IOException
  - 
    -  Overrides:
    
-  close in class InputStream
  
 
 read
read
 public int read() throws IOException
  - 
    -  Overrides:
    
-  read in class InputStream
  
 
 read
read
 public int read(byte b[],
                 int off,
                 int len) throws IOException
  - 
    -  Overrides:
    
-  read in class InputStream
  
 
 available
available
 public int available() throws IOException
  - 
    -  Overrides:
    
-  available in class InputStream
  
 
 skip
skip
 public long skip(long n) throws IOException
  - 
    -  Overrides:
    
-  skip in class InputStream
  
 
 finalize
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