OSMQ
v2.0.1

osmq.util
Class DynByteArray

java.lang.Object
  extended byosmq.util.DynByteArray

public class DynByteArray
extends java.lang.Object

A dynamically resizeable byte array onto which bytes may be appended one at a time. The internal array begins as a 16-byte element, and it is increased in 16-byte increments as needed.


Constructor Summary
DynByteArray()
           
DynByteArray(int sz)
           
 
Method Summary
 void appendByte(byte value)
           
 void clearContentSize()
           
 byte[] getBuffer()
           
 int getBufferSize()
           
 int getContentSize()
           
 byte[] getDuplicate()
           
 void initializeBuffer(int newsz)
           
 void setContentSize(int sz)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DynByteArray

public DynByteArray()

DynByteArray

public DynByteArray(int sz)
Method Detail

getBuffer

public byte[] getBuffer()

getBufferSize

public int getBufferSize()

clearContentSize

public void clearContentSize()

getContentSize

public int getContentSize()

setContentSize

public void setContentSize(int sz)

appendByte

public void appendByte(byte value)

getDuplicate

public byte[] getDuplicate()

toString

public java.lang.String toString()

initializeBuffer

public void initializeBuffer(int newsz)

(c) 2000 - 2003 MQue Systems
All Rights Reserved