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.
A
FunctionalInterface
for consuming the contents of a Resource
as an InputStream
,
throwing IOException
to the caller if an IO exception occurs.-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(Resource resource, InputStream inputStream) Consume the complete content of aResource
as a byte array, possibly throwingIOException
.
-
Method Details
-
accept
Consume the complete content of aResource
as a byte array, possibly throwingIOException
.- Parameters:
resource
- TheResource
used to load the byte array.inputStream
- TheInputStream
opened on the resource.- Throws:
IOException
- if an IO exception occurs.
-