public class ByteBufferInputStream extends InputStream
ByteBuffer.| Constructor and Description |
|---|
ByteBufferInputStream(ByteBuffer buffer)
Creates a new input stream to read from the specified buffer.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
ByteBuffer |
getBuffer()
Returns a reference to the underlying buffer.
|
void |
mark(int readLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b,
int offset,
int length) |
void |
reset() |
long |
skip(long n) |
close, readpublic ByteBufferInputStream(ByteBuffer buffer)
public ByteBuffer getBuffer()
public int read()
read in class InputStreampublic int read(byte[] b,
int offset,
int length)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic int available()
available in class InputStreampublic boolean markSupported()
markSupported in class InputStreampublic void mark(int readLimit)
mark in class InputStreampublic void reset()
throws IOException
reset in class InputStreamIOExceptionCopyright © 2015. All rights reserved.