class PipeBufferPool
extends Object
Modifier and Type | Field and Description |
---|---|
(package private) static int |
BUF_SIZE |
(package private) static int |
MAX_SPARE_BUFS |
(package private) static LinkedList |
spareBuffers |
Constructor and Description |
---|
PipeBufferPool() |
Modifier and Type | Method and Description |
---|---|
(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.
|
static final int MAX_SPARE_BUFS
static final int BUF_SIZE
static LinkedList spareBuffers
static byte[] allocBuffer()
static void deallocBuffer(byte[] buf)