com.sun.grizzly.tcp.http11
Class GrizzlyInputStream
java.lang.Object
java.io.InputStream
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
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)
|
ib
protected GrizzlyInputBuffer ib
GrizzlyInputStream
public GrizzlyInputStream(GrizzlyInputBuffer ib)
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 © 2009 SUN Microsystems. All Rights Reserved.