Package org.apache.commons.io.function
Interface IOIntConsumer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Like 
IntConsumer but throws IOException.- Since:
- 2.18.0
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionvoidaccept(int value) Performs this operation on the given argument.default IOIntConsumerandThen(IOIntConsumer after) Returns a composedIOIntConsumerthat performs, in sequence, this operation followed by theafteroperation.default IntConsumer
- 
Field Details- 
NOOPThe constant no-op consumer.
 
- 
- 
Method Details- 
acceptPerforms this operation on the given argument.- Parameters:
- value- the input argument
- Throws:
- IOException- if an I/O error occurs.
 
- 
andThenReturns a composedIOIntConsumerthat performs, in sequence, this operation followed by theafteroperation. If performing either operation throws an exception, it is relayed to the caller of the composed operation. If performing this operation throws an exception, theafteroperation will not be performed.- Parameters:
- after- the operation to perform after this operation
- Returns:
- a composed IOIntConsumerthat performs in sequence this operation followed by theafteroperation
- Throws:
- NullPointerException- if- afteris null
 
- 
asConsumer- Returns:
- an UncheckedIOException IntConsumer.
 
- 
asIntConsumer- Returns:
- an UncheckedIOException IntConsumer.
 
 
-