net.sf.jbaobab.io.etc
Class GrowingByteBuffer

java.lang.Object
  extended by net.sf.jbaobab.io.etc.GrowingByteBuffer

public final class GrowingByteBuffer
extends Object

Provides self-growing direct ByteBuffer instance.

Author:
Oakyoon Cha

Constructor Summary
GrowingByteBuffer()
           
GrowingByteBuffer(int defaultSize)
           
GrowingByteBuffer(int defaultSize, int growth, int surplus)
           
 
Method Summary
 ByteBuffer get()
           
 ByteBuffer get(int needed)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrowingByteBuffer

public GrowingByteBuffer(int defaultSize,
                         int growth,
                         int surplus)

GrowingByteBuffer

public GrowingByteBuffer(int defaultSize)

GrowingByteBuffer

public GrowingByteBuffer()
Method Detail

get

public ByteBuffer get()

get

public ByteBuffer get(int needed)