public class ByteBufferInputStream extends InputStream
ByteBuffer. This class IS NOT thread-safe.
Caller's MUST ByteBuffer.duplicate() the ByteBuffer before
creating an instance of this class if they wish to avoid side-effects on the
position and limit of the original ByteBuffer.| Constructor and Description |
|---|
ByteBufferInputStream(ByteBuffer buf) |
| Modifier and Type | Method and Description |
|---|---|
int |
read()
Read the next byte from the buffer.
|
int |
read(byte[] a,
int off,
int len) |
available, close, mark, markSupported, read, reset, skippublic ByteBufferInputStream(ByteBuffer buf)
public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] a,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.