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, skip
public ByteBufferInputStream(ByteBuffer buffer)
public int read()
read
in class InputStream
public int read(byte[] bytes, int off, int len)
read
in class InputStream
public int available() throws IOException
available
in class InputStream
IOException
Copyright © 2011–2018. All rights reserved.