Package io.github.classgraph
Class CloseableByteBuffer
- java.lang.Object
-
- io.github.classgraph.CloseableByteBuffer
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class CloseableByteBuffer extends Object implements Closeable
A wrapper forByteBuffer
that implements theCloseable
interface, releasing theByteBuffer
when it is no longer needed.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Release the wrappedByteBuffer
.ByteBuffer
getByteBuffer()
-
-
-
Method Detail
-
getByteBuffer
public ByteBuffer getByteBuffer()
- Returns:
- The wrapped
ByteBuffer
.
-
close
public void close() throws IOException
Release the wrappedByteBuffer
.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-