com.buglabs.osgi.http.pub
Class DynamicByteBuffer

java.lang.Object
  extended by com.buglabs.osgi.http.pub.DynamicByteBuffer

public class DynamicByteBuffer
extends java.lang.Object

A ADT for storing an arbitrary list of bytes. Structure will internally allocate memory as bytes are added.


Constructor Summary
DynamicByteBuffer()
           
DynamicByteBuffer(int segmentSize)
           
 
Method Summary
 void append(byte b)
           
 byte[] toArray()
          Return byte array of all bytes that have been appended in order.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicByteBuffer

public DynamicByteBuffer()

DynamicByteBuffer

public DynamicByteBuffer(int segmentSize)
Method Detail

append

public void append(byte b)

toArray

public byte[] toArray()
Return byte array of all bytes that have been appended in order.

Returns: