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 Summary

    Modifier and Type
    Method
    Description
    void
    accept(T resource)
    Accept a resource to be consumed.
  • Method Details

    • accept

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