public class ByteBufferInputStream extends InputStream
InputStream
wrapper for ByteBuffer
Currently this class is only used and available in MINA's codec module
Constructor and Description |
---|
ByteBufferInputStream(ByteBuffer buffer) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
close, read
public ByteBufferInputStream(ByteBuffer buffer)
buffer
- a buffer to be wrappedpublic int available()
available
in class InputStream
InputStream.available()
public void mark(int readlimit)
mark
in class InputStream
InputStream.mark(int)
public boolean markSupported()
markSupported
in class InputStream
InputStream.markSupported()
public int read()
read
in class InputStream
InputStream.read()
public int read(byte[] b, int off, int len)
read
in class InputStream
InputStream.read(byte[], int, int)
public void reset()
reset
in class InputStream
InputStream.reset()
public long skip(long n)
skip
in class InputStream
n
- the number of bytes to skip (values bigger than
Integer.MAX_VALUE
push the reading head to the end).InputStream.skip(long)
Copyright © 2009–2013 Apache MINA Project. All rights reserved.