public class CloseableByteBuffer
extends java.lang.Object
implements java.io.Closeable
ByteBuffer that implements the Closeable interface, releasing the
ByteBuffer when it is no longer needed.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Release the wrapped
ByteBuffer. |
java.nio.ByteBuffer |
getByteBuffer() |
public java.nio.ByteBuffer getByteBuffer()
ByteBuffer.public void close()
throws java.io.IOException
ByteBuffer.close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException