Interface IOOperation<T>

  • Type Parameters:
    T - The type of object on which the operation will take place.

    public interface IOOperation<T>
    A class that encapsulates an I/O-related operation on a particular object. For example, a method might retrieve a Writer from a method, and that method might allow an IOOperation to be specified that determines how the writer will be initialized if it doesn't already exist.
    Author:
    Garret Wilson
    • Method Detail

      • perform

        void perform​(T object)
              throws java.io.IOException
        Performs an operation on the indicated object.
        Parameters:
        object - The object on which the operation will occur.
        Throws:
        java.io.IOException - if there is an error during the operation.