ByteBuffer that implements the Closeable interface, releasing the
ByteBuffer when it is no longer needed.
| Modifier and Type | Field and Description |
|---|---|
| private ByteBuffer | |
| private Runnable |
| Access | Constructor and Description |
|---|---|
| pack-priv | CloseableByteBuffer(final ByteBuffer
The byteBuffer, final Runnable ByteBuffer to wrapThe method to run when onClose)close() is called.A wrapper for |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public ByteBuffer |
| byteBuffer | back to summary |
|---|---|
| private ByteBuffer byteBuffer | |
| onClose | back to summary |
|---|---|
| private Runnable onClose | |
| CloseableByteBuffer | back to summary |
|---|---|
| pack-priv CloseableByteBuffer(final ByteBuffer byteBuffer, final Runnable onClose) A wrapper for
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Release the wrapped
| |
| getByteBuffer | back to summary |
|---|---|
public ByteBuffer getByteBuffer()
| |