| java.lang.Object org.jboss.mq.il.uil2.msgs.DynCircularBuffer
DynCircularBuffer | public class DynCircularBuffer (Code) | | A circular byte[] buffer capable of expanding its capacity
author: Scott.Stark@jboss.org |
Method Summary | |
public synchronized void | clear() | public synchronized void | fill(byte[] data) | public synchronized void | fill(byte[] data, int length) | public synchronized int | get() | public synchronized int | get(byte b, int off, int length) | public synchronized int | getFreeSpace() | public synchronized int | getSize() | public static void | main(String[] args) |
DynCircularBuffer | public DynCircularBuffer()(Code) | | Creates a new instance of DynCircularBuffer
|
DynCircularBuffer | public DynCircularBuffer(int capacity)(Code) | | |
clear | public synchronized void clear()(Code) | | |
fill | public synchronized void fill(byte[] data)(Code) | | |
fill | public synchronized void fill(byte[] data, int length)(Code) | | |
get | public synchronized int get()(Code) | | |
get | public synchronized int get(byte b, int off, int length)(Code) | | |
getFreeSpace | public synchronized int getFreeSpace()(Code) | | Get the amount of free space left in the buffer
|
getSize | public synchronized int getSize()(Code) | | Get the amount of used space in the buffer
|
|
|