@FunctionalInterface public static interface ResourceList.ByteArrayConsumerThrowsIOException
FunctionalInterface
for consuming the contents of a Resource
as a byte array, throwing
IOException
to the caller if an IO exception occurs.Modifier and Type | Method and Description |
---|---|
void |
accept(Resource resource,
byte[] byteArray)
Consume the complete content of a
Resource as a byte array, possibly throwing
IOException . |
void accept(Resource resource, byte[] byteArray) throws IOException
Resource
as a byte array, possibly throwing
IOException
.resource
- The Resource
used to load the byte array.byteArray
- The complete content of the resource.IOException
- if an IO exception occurs.Copyright © 2023. All rights reserved.