bamboo.util
Class MultipleByteBufferInputStream
java.lang.Object
java.io.InputStream
bamboo.util.MultipleByteBufferInputStream
- All Implemented Interfaces:
- Closeable
public class MultipleByteBufferInputStream
- extends InputStream
Wraps a java.nio.ByteBuffer in the ostore.util.InputBuffer interface.
- Version:
- $Id: MultipleByteBufferInputStream.java,v 1.1 2005/01/24 03:30:42 srhea Exp $
- Author:
- Sean C. Rhea
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
size
protected int size
buffers
protected LinkedList buffers
remaining
protected int remaining
MultipleByteBufferInputStream
public MultipleByteBufferInputStream()
unlimit
public void unlimit()
limit
public void limit(int sz)
limit_remaining
public int limit_remaining()
add_bb
public void add_bb(ByteBuffer bb)
read
public int read()
- Specified by:
read in class InputStream
read
public int read(byte[] output)
- Overrides:
read in class InputStream
read
public int read(byte[] output,
int offset,
int length)
- Overrides:
read in class InputStream
read_skip_impl
public int read_skip_impl(byte[] output,
int offset,
int length)
skip
public long skip(long n)
- Overrides:
skip in class InputStream