Package io.github.classgraph
Interface ResourceList.ByteBufferConsumerThrowsIOException
-
- Enclosing class:
- ResourceList
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface ResourceList.ByteBufferConsumerThrowsIOException
AFunctionalInterface
for consuming the contents of aResource
as aByteBuffer
, throwingIOException
to the caller if an IO exception occurs.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
accept(Resource resource, java.nio.ByteBuffer byteBuffer)
Consume the complete content of aResource
as a byte array.
-
-
-
Method Detail
-
accept
void accept(Resource resource, java.nio.ByteBuffer byteBuffer) throws java.io.IOException
Consume the complete content of aResource
as a byte array.- Parameters:
resource
- TheResource
used to load the byte array, possibly throwingIOException
.byteBuffer
- TheByteBuffer
mapped to the resource.- Throws:
java.io.IOException
- if an IO exception occurs.
-
-