public class ByteBufferBackedInputStream extends InputStream
InputStream implementation that exposes currently
available content of a ByteBuffer.| Modifier and Type | Field and Description |
|---|---|
protected ByteBuffer |
_b |
| Constructor and Description |
|---|
ByteBufferBackedInputStream(ByteBuffer buf) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
int |
read() |
int |
read(byte[] bytes,
int off,
int len) |
close, mark, markSupported, read, reset, skipprotected final ByteBuffer _b
public ByteBufferBackedInputStream(ByteBuffer buf)
public int available()
available in class InputStreampublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] bytes,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionCopyright © 2008–2019 FasterXML. All rights reserved.