com.mongodb.io
Class ByteBufferHolder

java.lang.Object
  extended by com.mongodb.io.ByteBufferHolder

public class ByteBufferHolder
extends Object


Field Summary
(package private)  List<ByteBuffer> _buffers
           
(package private) static int _bufSize
           
(package private)  int _max
           
(package private)  int _pos
           
 
Constructor Summary
ByteBufferHolder()
           
ByteBufferHolder(int max)
           
 
Method Summary
 int capacity()
           
 byte get(int i)
           
 void get(int pos, byte[] b)
           
 int position()
           
 void position(int p)
           
 void put(ByteBuffer in)
           
 void put(int i, byte val)
           
 int remaining()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_buffers

List<ByteBuffer> _buffers

_pos

int _pos

_max

final int _max

_bufSize

static final int _bufSize
See Also:
Constant Field Values
Constructor Detail

ByteBufferHolder

public ByteBufferHolder()

ByteBufferHolder

public ByteBufferHolder(int max)
Method Detail

get

public byte get(int i)

get

public void get(int pos,
                byte[] b)

put

public void put(int i,
                byte val)

position

public int position()

position

public void position(int p)

remaining

public int remaining()

put

public void put(ByteBuffer in)

capacity

public int capacity()

toString

public String toString()
Overrides:
toString in class Object