com.sun.grizzly.tcp.http11
Class GrizzlyInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.sun.grizzly.tcp.http11.GrizzlyInputStream
All Implemented Interfaces:
Closeable

public class GrizzlyInputStream
extends InputStream

This class handles reading bytes.

Author:
Remy Maucherat, Jean-Francois Arcand

Field Summary
protected  GrizzlyInputBuffer ib
           
 
Constructor Summary
GrizzlyInputStream(GrizzlyInputBuffer ib)
           
 
Method Summary
 int available()
           
protected  Object clone()
          Prevent cloning the facade.
 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)
           
 
Methods inherited from class java.io.InputStream
mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ib

protected GrizzlyInputBuffer ib
Constructor Detail

GrizzlyInputStream

public GrizzlyInputStream(GrizzlyInputBuffer ib)
Method Detail

clone

protected Object clone()
                throws CloneNotSupportedException
Prevent cloning the facade.

Overrides:
clone in class Object
Throws:
CloneNotSupportedException

read

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

available

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

read

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

read

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

close

public void close()
           throws 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 Closeable
Overrides:
close in class InputStream
Throws:
IOException


Copyright © 2012 Oracle Corporation. All Rights Reserved.