org.apache.tomcat.facade
Class ServletInputStreamFacade

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--javax.servlet.ServletInputStream
              |
              +--org.apache.tomcat.facade.ServletInputStreamFacade

public final class ServletInputStreamFacade
extends javax.servlet.ServletInputStream

This is the input stream returned by ServletRequest.getInputStream(). It is the adapter between the ServletInputStream interface expected by webapps and Request.doRead() methods. This will also deal with the "contentLength" limit. Important Only the methods in ServletInputStream can be public.


Method Summary
 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)
           
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 int readLine(byte[] b,
                    int off,
                    int len)
             throws java.io.IOException
Overrides:
readLine in class javax.servlet.ServletInputStream

close

public void close()
Close the stream Since we re-cycle, we can't allow the call to super.close() which would permantely disable us.
Overrides:
close in class java.io.InputStream


Copyright © 2001 Apache Software Foundation. All Rights Reserved.