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, readpublic ByteBufferInputStream(ByteBuffer buffer)
buffer - a buffer to be wrappedpublic int available()
available in class InputStreamInputStream.available()public void mark(int readlimit)
mark in class InputStreamInputStream.mark(int)public boolean markSupported()
markSupported in class InputStreamInputStream.markSupported()public int read()
read in class InputStreamInputStream.read()public int read(byte[] b,
int off,
int len)
read in class InputStreamInputStream.read(byte[], int, int)public void reset()
reset in class InputStreamInputStream.reset()public long skip(long n)
skip in class InputStreamn - 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.