All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.apache.tomcat.core.BufferedServletInputStream

java.lang.Object
   |
   +----java.io.InputStream
           |
           +----javax.servlet.ServletInputStream
                   |
                   +----org.apache.tomcat.core.BufferedServletInputStream

public class BufferedServletInputStream
extends ServletInputStream
Default implementation use RequestAdapter to read data. Works only if you extend RequestImpl and override doRead() - all other implementations of Request should provide their own Stream

Author:
James Duncan Davidson , Jason Hunter

Constructor Index

 o BufferedServletInputStream()
 o BufferedServletInputStream(Request)

Method Index

 o doRead()
 o doRead(byte[], int, int)
 o read()
 o read(byte[])
 o read(byte[], int, int)
 o readLine()
Deprecated.
 o setLimit(int)
 o setRequest(Request)

Constructors

 o BufferedServletInputStream
 public BufferedServletInputStream()
 o BufferedServletInputStream
 public BufferedServletInputStream(Request reqA)

Methods

 o setRequest
 public void setRequest(Request reqA)
 o doRead
 public int doRead() throws IOException
 o doRead
 public int doRead(byte b[],
                   int off,
                   int len) throws IOException
 o setLimit
 public void setLimit(int limit)
 o read
 public int read() throws IOException
Overrides:
read in class InputStream
 o read
 public int read(byte b[]) throws IOException
Overrides:
read in class InputStream
 o read
 public int read(byte b[],
                 int off,
                 int len) throws IOException
Overrides:
read in class InputStream
 o readLine
 public String readLine() throws IOException
Note: readLine() is deprecated. Not part of Servlet API, without it we can avoid a lot of GC.


All Packages  Class Hierarchy  This Package  Previous  Next  Index