public final class ByteBufferInputStream extends InputStream
ByteBuffers to be used as an InputStream.
If you need InputStream.mark(int) and InputStream.reset() to work,
simply wrap this one in a BufferedInputStream.
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
static ByteBufferInputStream |
New(ByteBuffer sourceBuffer) |
static ByteBufferInputStream |
New(Iterable<? extends ByteBuffer> sourceBuffers) |
int |
read() |
int |
read(byte[] bytes,
int offset,
int length) |
close, mark, markSupported, read, reset, skippublic static ByteBufferInputStream New(ByteBuffer sourceBuffer)
public static ByteBufferInputStream New(Iterable<? extends ByteBuffer> sourceBuffers)
public int available()
throws IOException
available in class InputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] bytes,
int offset,
int length)
throws IOException
read in class InputStreamIOExceptionCopyright © 2022 MicroStream Software. All rights reserved.