bamboo.lss
Class NioInputBuffer

java.lang.Object
  extended by ostore.util.InputBufferImpl
      extended by bamboo.lss.NioInputBuffer
All Implemented Interfaces:
Cloneable, ostore.util.InputBuffer

public class NioInputBuffer
extends ostore.util.InputBufferImpl

Wraps a java.nio.ByteBuffer in the ostore.util.InputBuffer interface.

Version:
$Id: NioInputBuffer.java,v 1.6 2003/10/05 18:22:11 srhea Exp $
Author:
Sean C. Rhea

Field Summary
 ByteBuffer bb
           
 
Constructor Summary
NioInputBuffer(ByteBuffer bb)
           
 
Method Summary
 byte nextByte()
           
 void nextBytes(byte[] output, int offset, int length)
           
 void nextBytes(ostore.util.OutputBuffer buffer)
           
 int nextInt()
           
 long nextLong()
           
 short nextShort()
           
 void skipBytes(int length)
           
 ostore.util.InputBuffer subBuffer(int length)
           
 
Methods inherited from class ostore.util.InputBufferImpl
clone, nextBigInteger, nextBigInteger, nextBoolean, nextBoolean, nextDouble, nextDouble, nextInt, nextLong, nextObject, nextObject, nextShort, nextString, nextString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bb

public ByteBuffer bb
Constructor Detail

NioInputBuffer

public NioInputBuffer(ByteBuffer bb)
Method Detail

nextInt

public int nextInt()
Specified by:
nextInt in interface ostore.util.InputBuffer
Overrides:
nextInt in class ostore.util.InputBufferImpl

nextShort

public short nextShort()
Specified by:
nextShort in interface ostore.util.InputBuffer
Overrides:
nextShort in class ostore.util.InputBufferImpl

nextLong

public long nextLong()
Specified by:
nextLong in interface ostore.util.InputBuffer
Overrides:
nextLong in class ostore.util.InputBufferImpl

nextByte

public byte nextByte()

nextBytes

public void nextBytes(byte[] output,
                      int offset,
                      int length)

nextBytes

public void nextBytes(ostore.util.OutputBuffer buffer)

skipBytes

public void skipBytes(int length)

subBuffer

public ostore.util.InputBuffer subBuffer(int length)