public class ByteBufferInputStream extends InputStream
| Modifier and Type | Field and Description |
|---|---|
protected ByteBuffer |
byteBuf |
protected int |
count |
protected int |
initPos |
| Constructor and Description |
|---|
ByteBufferInputStream(ByteBuffer buffer) |
ByteBufferInputStream(ByteBuffer buffer,
int offset,
int count) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
int |
read() |
int |
read(byte[] bytes,
int offset,
int length) |
long |
skip(long n) |
ByteBuffer |
toByteBuffer() |
close, mark, markSupported, read, resetprotected ByteBuffer byteBuf
protected int initPos
protected int count
public ByteBufferInputStream(ByteBuffer buffer)
public ByteBufferInputStream(ByteBuffer buffer, int offset, int count)
public ByteBuffer toByteBuffer()
public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] bytes,
int offset,
int length)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
skip in class InputStreampublic int available()
available in class InputStreamCopyright © 2016 The Apache Software Foundation. All rights reserved.