public final class BufferManager
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
configure(org.jacorb.config.Configuration configuration)
configures the BufferManager, in turn configures the singleton.
|
byte[] |
getBuffer(int initial) |
byte[] |
getBuffer(int initial,
boolean cdrStr)
getBuffer returns a new buffer. |
static BufferManager |
getInstance()
May only be called after configure()
|
byte[] |
getPreferredMemoryBuffer() |
void |
release() |
void |
returnBuffer(byte[] current) |
void |
returnBuffer(byte[] current,
boolean cdrStr)
Describe
returnBuffer method here. |
public static void configure(org.jacorb.config.Configuration configuration)
public static BufferManager getInstance() throws BAD_INV_ORDER
BAD_INV_ORDER - if not previously configuredpublic byte[] getPreferredMemoryBuffer()
public byte[] getBuffer(int initial)
public byte[] getBuffer(int initial,
boolean cdrStr)
getBuffer returns a new buffer.initial - an int valuecdrStr - a boolean value to denote if CDROuputStream is caller
(may use cache in this situation)byte[] valuepublic void returnBuffer(byte[] current)
public void returnBuffer(byte[] current,
boolean cdrStr)
returnBuffer method here.current - a byte[] valuecdrStr - a boolean value value to denote if CDROuputStream is
caller (may use cache in this situation)public void release()