Interface ResourceConsumer<T>

  • Type Parameters:
    T - type of the resource to be accepted.

    public interface ResourceConsumer<T>
    Consumer of a resource which can throw IOExceptions.
    • Method Detail

      • accept

        void accept​(T resource)
             throws java.io.IOException
        Accept a resource to be consumed.
        Parameters:
        resource - to be consumed.
        Throws:
        java.io.IOException - during the consumption of the resource.