public class ByteBufferInputStream
extends java.io.InputStream
| Constructor and Description |
|---|
ByteBufferInputStream() |
ByteBufferInputStream(java.nio.ByteBuffer byteBuffer) |
ByteBufferInputStream(int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
java.nio.ByteBuffer |
getByteBuffer() |
int |
read() |
int |
read(byte[] bytes,
int offset,
int length) |
void |
setByteBuffer(java.nio.ByteBuffer byteBuffer) |
public ByteBufferInputStream()
public ByteBufferInputStream(int bufferSize)
public ByteBufferInputStream(java.nio.ByteBuffer byteBuffer)
public java.nio.ByteBuffer getByteBuffer()
public void setByteBuffer(java.nio.ByteBuffer byteBuffer)
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] bytes,
int offset,
int length)
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.IOException