gnu.inet.http

Class ChunkedInputStream


public class ChunkedInputStream
extends java.io.FilterInputStream

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

Author:
Chris Burdess

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)

Constructor Details

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 Details

read

public int read()
            throws java.io.IOException


read

public int read(byte[] buffer)
            throws java.io.IOException


read

public int read(byte[] buffer,
                int offset,
                int length)
            throws java.io.IOException


© Copyright 2003 The Free Software Foundation, all rights reserved