|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BufferHandler
A ByteBuffer handler
Method Summary | |
---|---|
ByteBuffer |
getBuffer()
Get a byte buffer of reasonable size, the buffer will have been cleared. |
ByteBuffer |
growBuffer(ByteBuffer buffer)
Get a larger buffer with the same contents as buffer, this will also return buffer to the pool. |
void |
putBuffer(ByteBuffer buffer)
Return a buffer. |
Method Detail |
---|
ByteBuffer getBuffer()
void putBuffer(ByteBuffer buffer)
ByteBuffer growBuffer(ByteBuffer buffer)
buffer
- an existing buffer, the contents will be copied into
the new larger buffer. May be null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |