Interface IOConsumer<C>
- Type Parameters:
C- the type of stream/reader
- All Superinterfaces:
Consumer<C>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Common functional interface for I/O content consumption, for example
consuming an
InputStream or a Reader.- Since:
- 7.1
- Author:
- Juergen Hoeller
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidvoidacceptWithException(C content) Performs this operation on the given argument, possibly throwing anIOException.
-
Method Details
-
acceptWithException
Performs this operation on the given argument, possibly throwing anIOException.- Parameters:
content- the stream/reader- Throws:
IOException- on error
-
accept
-