public class CloseableByteBuffer extends Object implements 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 . |
ByteBuffer |
getByteBuffer() |
public ByteBuffer getByteBuffer()
ByteBuffer
.public void close() throws IOException
ByteBuffer
.close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2022. All rights reserved.