public class ByteBufferInputStream
extends java.io.InputStream
Modifier and Type | Field and Description |
---|---|
private java.nio.ByteBuffer |
bb |
Constructor and Description |
---|
ByteBufferInputStream(byte[] b) |
ByteBufferInputStream(byte[] b,
int off,
int len) |
ByteBufferInputStream(java.nio.ByteBuffer buffer) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
(package private) java.nio.ByteBuffer |
buffer()
For use by
ByteBufferOutputStream.write(InputStream) |
void |
close() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
public ByteBufferInputStream(java.nio.ByteBuffer buffer)
public ByteBufferInputStream(byte[] b, int off, int len)
public ByteBufferInputStream(byte[] b)
public int read()
read
in class java.io.InputStream
public int read(byte[] b, int off, int len)
read
in class java.io.InputStream
public long skip(long n)
skip
in class java.io.InputStream
public int available()
available
in class java.io.InputStream
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
public void mark(int readlimit)
mark
in class java.io.InputStream
public void reset()
reset
in class java.io.InputStream
public boolean markSupported()
markSupported
in class java.io.InputStream
java.nio.ByteBuffer buffer()
ByteBufferOutputStream.write(InputStream)