gnu.inet.http
Class ChunkedInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by gnu.inet.http.ChunkedInputStream
All Implemented Interfaces:
java.io.Closeable

public class ChunkedInputStream
extends java.io.FilterInputStream

Input stream wrapper for the "chunked" transfer-coding.

Author:
Chris Burdess

Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
ChunkedInputStream(java.io.InputStream in, Headers headers)
          Constructor.
 
Method Summary
 int read()
           
 int read(byte[] buffer)
           
 int read(byte[] buffer, int offset, int length)
           
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChunkedInputStream

public ChunkedInputStream(java.io.InputStream in,
                          Headers headers)
Constructor.

Parameters:
in - the response socket input stream
headers - the headers to receive additional header lines
Method Detail

read

public int read()
         throws java.io.IOException
Overrides:
read in class java.io.FilterInputStream
Throws:
java.io.IOException

read

public int read(byte[] buffer)
         throws java.io.IOException
Overrides:
read in class java.io.FilterInputStream
Throws:
java.io.IOException

read

public int read(byte[] buffer,
                int offset,
                int length)
         throws java.io.IOException
Overrides:
read in class java.io.FilterInputStream
Throws:
java.io.IOException


© Copyright 2003 The Free Software Foundation, all rights reserved