bamboo.lss
Class NioMultiplePacketInputBuffer
java.lang.Object
ostore.util.InputBufferImpl
bamboo.lss.NioMultiplePacketInputBuffer
- All Implemented Interfaces:
- Cloneable, ostore.util.InputBuffer
public class NioMultiplePacketInputBuffer
- extends ostore.util.InputBufferImpl
Wraps a java.nio.ByteBuffer in the ostore.util.InputBuffer interface.
- Version:
- $Id: NioMultiplePacketInputBuffer.java,v 1.2 2004/11/14 00:48:46 srhea Exp $
- Author:
- Sean C. Rhea
| Methods inherited from class ostore.util.InputBufferImpl |
clone, nextBigInteger, nextBigInteger, nextBoolean, nextBoolean, nextDouble, nextDouble, nextInt, nextInt, nextLong, nextLong, nextObject, nextObject, nextShort, nextShort, nextString, nextString |
size
protected int size
buffers
protected LinkedList buffers
remaining
protected int remaining
NioMultiplePacketInputBuffer
public NioMultiplePacketInputBuffer()
unlimit
public void unlimit()
limit
public void limit(int sz)
limit_remaining
public int limit_remaining()
size
public int size()
add_packet
public void add_packet(ByteBuffer bb)
nextByte
public byte nextByte()
nextBytes
public void nextBytes(byte[] output,
int offset,
int length)
nextBytes
public void nextBytes(ostore.util.OutputBuffer buffer)
subBuffer
public ostore.util.InputBuffer subBuffer(int length)