com.caucho.server.http
Class ServletInputStreamImpl

java.lang.Object
  extended by java.io.InputStream
      extended by javax.servlet.ServletInputStream
          extended by com.caucho.server.http.ServletInputStreamImpl
All Implemented Interfaces:
java.io.Closeable

public class ServletInputStreamImpl
extends ServletInputStream


Constructor Summary
ServletInputStreamImpl()
           
 
Method Summary
 int available()
           
 void close()
           
 void free()
           
 void init(java.io.InputStream is)
           
 int read()
          Reads a byte from the input stream.
 int read(byte[] buf, int offset, int len)
           
 long skip(long n)
           
 java.lang.String toString()
           
 
Methods inherited from class javax.servlet.ServletInputStream
readLine
 
Methods inherited from class java.io.InputStream
mark, markSupported, read, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServletInputStreamImpl

public ServletInputStreamImpl()
Method Detail

init

public void init(java.io.InputStream is)

available

public int available()
              throws java.io.IOException
Overrides:
available in class java.io.InputStream
Throws:
java.io.IOException

read

public int read()
         throws java.io.IOException
Reads a byte from the input stream.

Specified by:
read in class java.io.InputStream
Returns:
the next byte or -1 on end of file.
Throws:
java.io.IOException

read

public int read(byte[] buf,
                int offset,
                int len)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

skip

public long skip(long n)
          throws java.io.IOException
Overrides:
skip in class java.io.InputStream
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.InputStream
Throws:
java.io.IOException

free

public void free()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object