public class PoolableByteBuffer
extends java.lang.Object
ByteBuffer. Instances of this class are reusable but are NOT threadsafe.
Instances are vended by Pool.getOrCreate().
Users are expected to call close() when the decoder is no longer needed.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Attempts to return this instance to the pool with which it is associated, if any.
|
java.nio.ByteBuffer |
getBuffer() |
public java.nio.ByteBuffer getBuffer()
public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseable