public class ByteBufferInputStream
extends java.io.InputStream
Constructor and Description |
---|
ByteBufferInputStream(java.nio.ByteBuffer buffer)
Creates a new instance of ByteBufferInputStream
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
java.nio.ByteBuffer |
getByteBuffer() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
public ByteBufferInputStream(java.nio.ByteBuffer buffer)
public java.nio.ByteBuffer getByteBuffer()
public int read()
read
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 long skip(long n)
skip
in class java.io.InputStream
public void reset() throws java.io.IOException
reset
in class java.io.InputStream
java.io.IOException
public int available()
available
in class java.io.InputStream
public int read(byte[] b)
read
in class java.io.InputStream
public boolean markSupported()
markSupported
in class java.io.InputStream
public void mark(int readlimit)
mark
in class java.io.InputStream
public int read(byte[] b, int off, int len)
read
in class java.io.InputStream