bamboo.lss
Class NioMultiplePacketInputBuffer

java.lang.Object
  extended by ostore.util.InputBufferImpl
      extended by 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

Field Summary
protected  LinkedList buffers
           
protected  int remaining
           
protected  int size
           
 
Constructor Summary
NioMultiplePacketInputBuffer()
           
 
Method Summary
 void add_packet(ByteBuffer bb)
           
 int limit_remaining()
           
 void limit(int sz)
           
 byte nextByte()
           
 void nextBytes(byte[] output, int offset, int length)
           
 void nextBytes(ostore.util.OutputBuffer buffer)
           
 int size()
           
 ostore.util.InputBuffer subBuffer(int length)
           
 void unlimit()
           
 
Methods inherited from class ostore.util.InputBufferImpl
clone, nextBigInteger, nextBigInteger, nextBoolean, nextBoolean, nextDouble, nextDouble, nextInt, nextInt, nextLong, nextLong, nextObject, nextObject, nextShort, nextShort, nextString, nextString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

size

protected int size

buffers

protected LinkedList buffers

remaining

protected int remaining
Constructor Detail

NioMultiplePacketInputBuffer

public NioMultiplePacketInputBuffer()
Method Detail

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)