接口 IOConsumer<T>

类型参数:
T - the consumed type
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface IOConsumer<T>
Consumer that can safely throw IO exceptions.
从以下版本开始:
2.3.0
作者:
Phillip Webb
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    accept(T t)
    Performs this operation on the given argument.
  • 方法详细资料

    • accept

      void accept(T t) throws IOException
      Performs this operation on the given argument.
      参数:
      t - the instance to consume
      抛出:
      IOException - on IO error