@FunctionalInterface public interface IntIOConsumer
int
-valued argument and returns no result.
This is the IOException
throwing equivalent of IntConsumer
.Modifier and Type | Method and Description |
---|---|
void |
accept(int value)
Performs this operation on the given argument.
|
default IntIOConsumer |
andThen(IntIOConsumer after)
Returns a composed
IntIOConsumer that performs, in sequence, this operation followed by the after operation. |
static IntIOConsumer |
checked(IntConsumer operation)
Returns an
IntIOConsumer that performs the operation operation, and unwraps any UncheckedIOException that is thrown
by throwing its cause . |
static IntConsumer |
unchecked(IntIOConsumer operation)
Returns a
IntConsumer that performs the operation operation, and wraps any IOException that is thrown in an
UncheckedIOException . |
void accept(int value) throws IOException
value
- The input argument.IOException
- If an I/O error occurs.default IntIOConsumer andThen(IntIOConsumer after)
IntIOConsumer
that performs, in sequence, this operation followed by the after
operation.
If performing either operation throws an exception, it is relayed to the caller of the composed operation.
If performing this operation throws an exception, the after
operation will not be performed.after
- The operation to perform after this operation.IntIOConsumer
that performs in sequence this operation followed by the after
operation.NullPointerException
- If after
is null
.static IntConsumer unchecked(IntIOConsumer operation)
IntConsumer
that performs the operation
operation, and wraps any IOException
that is thrown in an
UncheckedIOException
.operation
- The operation to perform when the returned operation is performed.IntConsumer
that performs the operation
operation on its input, and wraps any IOException
that is thrown
in an UncheckedIOException
.NullPointerException
- If operation
is null
.static IntIOConsumer checked(IntConsumer operation)
IntIOConsumer
that performs the operation
operation, and unwraps any UncheckedIOException
that is thrown
by throwing its cause
.operation
- The operation to perform when the returned operation is performed.IntIOConsumer
that performs the operation
operation on its input, and unwraps any UncheckedIOException
that is thrown.NullPointerException
- If the given operation is null
.Copyright © 2017–2020. All rights reserved.