public final class ByteBufferInputStream extends InputStream
ByteBuffer's position to the limit as InputStream.| Constructor and Description |
|---|
ByteBufferInputStream(ByteBuffer buffer)
Does *not* make a copy of the given buffer, so the position of the given buffer is incremented, as the created
InputStream is used.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
int |
read() |
int |
read(byte[] bytes,
int off,
int len) |
close, mark, markSupported, read, reset, skippublic ByteBufferInputStream(ByteBuffer buffer)
public int read()
read in class InputStreampublic int read(byte[] bytes,
int off,
int len)
read in class InputStreampublic int available()
available in class InputStreamCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.