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
-
BufferedServletInputStream()
-
-
BufferedServletInputStream(Request)
-
-
doRead()
-
-
doRead(byte[], int, int)
-
-
read()
-
-
read(byte[])
-
-
read(byte[], int, int)
-
-
readLine()
-
Deprecated.
-
setLimit(int)
-
-
setRequest(Request)
-
BufferedServletInputStream
public BufferedServletInputStream()
BufferedServletInputStream
public BufferedServletInputStream(Request reqA)
setRequest
public void setRequest(Request reqA)
doRead
public int doRead() throws IOException
doRead
public int doRead(byte b[],
int off,
int len) throws IOException
setLimit
public void setLimit(int limit)
read
public int read() throws IOException
- Overrides:
- read in class InputStream
read
public int read(byte b[]) throws IOException
- Overrides:
- read in class InputStream
read
public int read(byte b[],
int off,
int len) throws IOException
- Overrides:
- read in class InputStream
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