org.apache.coyote.tomcat5

Class CoyoteInputStream


public class CoyoteInputStream
extends ServletInputStream

This class handles reading bytes.

Authors:
Remy Maucherat
Jean-Francois Arcand

Field Summary

protected InputBuffer
ib

Constructor Summary

CoyoteInputStream(InputBuffer ib)

Method Summary

int
available()
void
close()
Close the stream Since we re-cycle, we can't allow the call to super.close() which would permantely disable us.
int
read()
int
read(byte[] b)
int
read(byte[] b, int off, int len)
int
readLine(byte[] b, int off, int len)

Field Details

ib

protected InputBuffer ib

Constructor Details

CoyoteInputStream

protected CoyoteInputStream(InputBuffer ib)

Method Details

available

public int available()
            throws IOException


close

public void close()
            throws IOException
Close the stream Since we re-cycle, we can't allow the call to super.close() which would permantely disable us.


read

public int read()
            throws IOException


read

public int read(byte[] b)
            throws IOException


read

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


readLine

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


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.