org.apache.tomcat.core
Class BufferedServletInputStream
java.lang.Object
|
+--java.io.InputStream
|
+--javax.servlet.ServletInputStream
|
+--org.apache.tomcat.core.BufferedServletInputStream
- public class BufferedServletInputStream
- extends javax.servlet.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
Method Summary |
int |
doRead()
|
int |
doRead(byte[] b,
int off,
int len)
|
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
java.lang.String |
readLine()
Deprecated. Not part of Servlet API, without it we can avoid a lot of GC. |
void |
setLimit(int limit)
|
void |
setRequest(Request reqA)
|
Methods inherited from class javax.servlet.ServletInputStream |
readLine |
Methods inherited from class java.io.InputStream |
available,
close,
mark,
markSupported,
reset,
skip |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
BufferedServletInputStream
public BufferedServletInputStream()
BufferedServletInputStream
public BufferedServletInputStream(Request reqA)
setRequest
public void setRequest(Request reqA)
doRead
public int doRead()
throws java.io.IOException
doRead
public int doRead(byte[] b,
int off,
int len)
throws java.io.IOException
setLimit
public void setLimit(int limit)
read
public int read()
throws java.io.IOException
- Overrides:
- read in class java.io.InputStream
read
public int read(byte[] b)
throws java.io.IOException
- Overrides:
- read in class java.io.InputStream
read
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
- Overrides:
- read in class java.io.InputStream
readLine
public java.lang.String readLine()
throws java.io.IOException
- Deprecated. Not part of Servlet API, without it we can avoid a lot of GC.
Copyright © 2000 Apache Software Foundation. All Rights Reserved.