public class BufferInputStream
extends java.io.InputStream
InputStream implementation over Grizzly Buffer.| Constructor and Description |
|---|
BufferInputStream(Buffer buffer)
Create the
InputStream over Grizzly Buffer. |
BufferInputStream(Buffer buffer,
int position,
int limit)
Create the
InputStream over Grizzly Buffer. |
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 BufferInputStreambuffer - public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionCopyright © 2013 Oracle Corporation. All Rights Reserved.