Interface IOConsumer<T>

Type Parameters:
T - Type accepted by the function
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IOConsumer<T>
Functional interface similar to Consumer but allowing an IOException to be thrown.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(T value)
    Perform an operation with the given argument.
  • Method Details

    • accept

      void accept(T value) throws IOException
      Perform an operation with the given argument.
      Parameters:
      value - argument
      Throws:
      IOException - if an I/O error occurs