|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
org.glassfish.grizzly.utils.BufferInputStream
public class BufferInputStream
InputStream
implementation over Grizzly Buffer
.
Constructor Summary | |
---|---|
BufferInputStream(Buffer buffer)
Create the InputStream over Grizzly Buffer . |
|
BufferInputStream(Buffer buffer,
int position,
int limit)
Create the InputStream over Grizzly Buffer . |
Method Summary | |
---|---|
int |
available()
|
int |
read()
|
int |
read(byte[] b,
int off,
int len)
|
long |
skip(long n)
|
Methods inherited from class java.io.InputStream |
---|
close, mark, markSupported, read, reset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BufferInputStream(Buffer buffer)
InputStream
over Grizzly Buffer
.
Constructed BufferInputStream read operations will affect the
passed Buffer
position, which means each BufferInputStream
read operation will shift Buffer
's position by number of bytes,
which were read.
buffer
- public BufferInputStream(Buffer buffer, int position, int limit)
InputStream
over Grizzly Buffer
.
Constructed BufferInputStream read operations will *not* affect
the passed Buffer
position, which means the passed Buffer
position will never be changed during BufferInputStream
buffer
- Method Detail |
---|
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public int available() throws IOException
available
in class InputStream
IOException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |