@FunctionalInterface
public static interface ResourceList.ByteBufferConsumerThrowsIOException
FunctionalInterface for consuming the contents of a Resource as a ByteBuffer,
throwing IOException to the caller if an IO exception occurs.| Modifier and Type | Method and Description |
|---|---|
void |
accept(Resource resource,
java.nio.ByteBuffer byteBuffer)
Consume the complete content of a
Resource as a byte array. |
void accept(Resource resource, java.nio.ByteBuffer byteBuffer) throws java.io.IOException
Resource as a byte array.resource - The Resource used to load the byte array, possibly throwing IOException.byteBuffer - The ByteBuffer mapped to the resource.java.io.IOException - if an IO exception occurs.