|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectPipeBufferPool
class PipeBufferPool
Keeps a pool of buffers used by the Pipe saxon extension functions, to minimize per-request memory gobbling.
Field Summary | |
---|---|
(package private) static int |
BUF_SIZE
|
(package private) static int |
MAX_SPARE_BUFS
|
(package private) static LinkedList |
spareBuffers
|
Constructor Summary | |
---|---|
PipeBufferPool()
|
Method Summary | |
---|---|
(package private) static byte[] |
allocBuffer()
Allocate a buffer to use for I/O. |
(package private) static void |
deallocBuffer(byte[] buf)
Return a buffer so it can be re-used later. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final int MAX_SPARE_BUFS
static final int BUF_SIZE
static LinkedList spareBuffers
Constructor Detail |
---|
PipeBufferPool()
Method Detail |
---|
static byte[] allocBuffer()
static void deallocBuffer(byte[] buf)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |