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, skip
protected final ByteBuffer _b
public ByteBufferBackedInputStream(ByteBuffer buf)
public int available()
available
in class InputStream
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] bytes, int off, int len) throws IOException
read
in class InputStream
IOException
Copyright © 2014-2015 FasterXML. All Rights Reserved.