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