com.sun.grizzly.http.servlet
Class ServletInputStreamImpl

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

public class ServletInputStreamImpl
extends javax.servlet.ServletInputStream

Author:
Jeanfrancois Arcand

Constructor Summary
protected ServletInputStreamImpl(GrizzlyInputStream inputStream)
           
 
Method Summary
 int available()
           
 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)
           
protected  void update(GrizzlyInputStream inputStream)
           
 
Methods inherited from class javax.servlet.ServletInputStream
readLine
 
Methods inherited from class java.io.InputStream
mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletInputStreamImpl

protected ServletInputStreamImpl(GrizzlyInputStream inputStream)
Method Detail

update

protected void update(GrizzlyInputStream inputStream)

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

available

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

read

public int read(byte[] b)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

read

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

close

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

Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.InputStream
Throws:
java.io.IOException


Copyright © 2012 Oracle Corporation. All Rights Reserved.