public class ByteBufferBackedInputStream extends InputStream
Constructor and Description |
---|
ByteBufferBackedInputStream(ByteBuffer buf)
Creates a new instance for the given ByteBuffer.
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
void |
mark(int readlimit) |
boolean |
markSupported() |
void |
position(int position) |
int |
read() |
int |
read(byte[] bytes,
int off,
int len) |
void |
reset() |
void |
rewind() |
long |
skip(long n) |
read
public ByteBufferBackedInputStream(ByteBuffer buf)
buf
- The ByteBuffer to usepublic int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] bytes, int off, int len) throws IOException
read
in class InputStream
IOException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
public int available() throws IOException
available
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public void mark(int readlimit)
mark
in class InputStream
public void rewind() throws IOException
IOException
public void position(int position) throws IOException
IOException
public void reset() throws IOException
reset
in class InputStream
IOException
public boolean markSupported()
markSupported
in class InputStream
Copyright © 2010–2018 Jadira Systems. All rights reserved.