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