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

Constructor Summary
BufferedServletInputStream()
           
BufferedServletInputStream(Request reqA)
           
 
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)
           
 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
 

Constructor Detail

BufferedServletInputStream

public BufferedServletInputStream()

BufferedServletInputStream

public BufferedServletInputStream(Request reqA)
Method Detail

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


Copyright © 2000 Apache Software Foundation. All Rights Reserved.