Class CloseableByteBuffer
java.lang.Object
io.github.classgraph.CloseableByteBuffer
- All Implemented Interfaces:
Closeable, AutoCloseable
A wrapper for
ByteBuffer that implements the Closeable interface, releasing the
ByteBuffer when it is no longer needed.-
Method Summary
-
Method Details
-
getByteBuffer
- Returns:
- The wrapped
ByteBuffer.
-
close
Release the wrappedByteBuffer.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-