@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,
java.io.InputStream inputStream)
Consume the complete content of a
Resource as a byte array, possibly throwing
IOException. |
void accept(Resource resource, java.io.InputStream inputStream) throws java.io.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.java.io.IOException - if an IO exception occurs.