Interface IOConsumer<T>
-
- Type Parameters:
T- Type accepted by the function
- 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 interface IOConsumer<T>Functional interface similar toConsumerbut allowing anIOExceptionto be thrown.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaccept(T value)Perform an operation with the given argument.
-
-
-
Method Detail
-
accept
void accept(T value) throws java.io.IOException
Perform an operation with the given argument.- Parameters:
value- argument- Throws:
java.io.IOException- if an I/O error occurs
-
-