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 Detail

      • accept

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