Package io.github.classgraph
Interface ResourceList.InputStreamConsumerThrowsIOException
-
- Enclosing class:
- ResourceList
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface ResourceList.InputStreamConsumerThrowsIOExceptionAFunctionalInterfacefor consuming the contents of aResourceas anInputStream, throwingIOExceptionto the caller if an IO exception occurs.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaccept(Resource resource, java.io.InputStream inputStream)Consume the complete content of aResourceas a byte array, possibly throwingIOException.
-
-
-
Method Detail
-
accept
void accept(Resource resource, java.io.InputStream inputStream) throws java.io.IOException
Consume the complete content of aResourceas a byte array, possibly throwingIOException.- Parameters:
resource- TheResourceused to load the byte array.inputStream- TheInputStreamopened on the resource.- Throws:
java.io.IOException- if an IO exception occurs.
-
-