public class ByteBufferBackedInputStream
extends java.io.InputStream
InputStream implementation that exposes currently
available content of a ByteBuffer.| Modifier and Type | Field and Description |
|---|---|
protected java.nio.ByteBuffer |
_b |
| Constructor and Description |
|---|
ByteBufferBackedInputStream(java.nio.ByteBuffer buf) |
public ByteBufferBackedInputStream(java.nio.ByteBuffer buf)
public int available()
available in class java.io.InputStreampublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] bytes,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException