public class ByteBufferPool
extends java.lang.Object
Constructor and Description |
---|
ByteBufferPool() |
Modifier and Type | Method and Description |
---|---|
void |
drain()
Drains this ByteBufferPool i.e.
|
ByteBuffer |
getBuffer(int capacity)
Gets a ByteBuffer out of this pool of ByteBuffers which
is capable to receiving at least capacity number of bytes.
|
public void drain()
public ByteBuffer getBuffer(int capacity)
capacity
- the minimal number of bytes that the returned
ByteBuffer is to be capable of receiving
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.