?? IOConsumer<T>
- ????:
T
- the type of the input to the operations.
- ????:
- ????????, ????? lambda ??????????????
Like
Consumer
but throws IOException
.- ???????:
- 2.7
-
????
?? -
????
??????????void
Performs this operation on the given argument.default IOConsumer<T>
andThen
(IOConsumer<? super T> after) Returns a composedIoConsumer
that performs, in sequence, this operation followed by theafter
operation.static <T> IOConsumer<T>
noop()
Returns a constant NOOP consumer.
-
??????
-
NOOP_IO_CONSUMER
Package private constant; consider private.
-
-
??????
-
noop
Returns a constant NOOP consumer.- ????:
T
- Type consumer type.- ??:
- a constant NOOP consumer.
- ???????:
- 2.9.0
-
accept
Performs this operation on the given argument.- ??:
t
- the input argument- ??:
IOException
- if an I/O error occurs.
-
andThen
Returns a composedIoConsumer
that performs, in sequence, this operation followed by theafter
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, theafter
operation will not be performed.- ??:
after
- the operation to perform after this operation- ??:
- a composed
Consumer
that performs in sequence this operation followed by theafter
operation - ??:
NullPointerException
- ifafter
is null
-