?? IOConsumer<T>

????:
T - the type of the input to the operations.
????:
????????, ????? lambda ??????????????

@FunctionalInterface public interface IOConsumer<T>
Like Consumer but throws IOException.
???????:
2.7
  • ????

    ??
    ??????
    ??
    ??
    static final IOConsumer<?>
    Package private constant; consider private.
  • ????

    ??????
    ??
    ??
    void
    accept(T t)
    Performs this operation on the given argument.
    default IOConsumer<T>
    andThen(IOConsumer<? super T> after)
    Returns a composed IoConsumer that performs, in sequence, this operation followed by the after operation.
    static <T> IOConsumer<T>
    Returns a constant NOOP consumer.
  • ??????

  • ??????

    • noop

      static <T> IOConsumer<T> noop()
      Returns a constant NOOP consumer.
      ????:
      T - Type consumer type.
      ??:
      a constant NOOP consumer.
      ???????:
      2.9.0
    • accept

      void accept(T t) throws IOException
      Performs this operation on the given argument.
      ??:
      t - the input argument
      ??:
      IOException - if an I/O error occurs.
    • andThen

      default IOConsumer<T> andThen(IOConsumer<? super T> after)
      Returns a composed IoConsumer 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
      ??:
      a composed Consumer that performs in sequence this operation followed by the after operation
      ??:
      NullPointerException - if after is null