|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.mq.il.uil.multiplexor.DynCircularBuffer
A circular byte[] buffer capable of expanding its capacity
Constructor Summary | |
DynCircularBuffer()
Creates a new instance of DynCircularBuffer |
|
DynCircularBuffer(int capacity)
|
Method Summary | |
void |
clear()
|
void |
fill(byte[] data)
|
void |
fill(byte[] data,
int length)
|
int |
get()
|
int |
get(byte[] b,
int off,
int length)
|
int |
getFreeSpace()
Get the amount of free space left in the buffer |
int |
getSize()
Get the amount of used space in the buffer |
static void |
main(String[] args)
Unit test driver for the buffer |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DynCircularBuffer()
public DynCircularBuffer(int capacity)
Method Detail |
public void clear()
public void fill(byte[] data)
public void fill(byte[] data, int length)
public int get()
public int get(byte[] b, int off, int length)
public int getSize()
public int getFreeSpace()
public static void main(String[] args) throws Exception
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |