@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,
ByteBuffer byteBuffer)
Consume the complete content of a
Resource as a byte array. |
void accept(Resource resource, ByteBuffer byteBuffer) throws 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.IOException - if an IO exception occurs.Copyright © 2021. All rights reserved.