public class ByteBufferBackedInputStream extends InputStream
InputStream
implementation that exposes currently
available content of a ByteBuffer
.Modifier and Type | Field and Description |
---|---|
protected ByteBuffer |
_buffer |
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 _buffer
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 © 2012-2013 FasterXML. All Rights Reserved.