Package com.globalmentor.io
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 aWriter
from a method, and that method might allow anIOOperation
to be specified that determines how the writer will be initialized if it doesn't already exist.- Author:
- Garret Wilson
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
perform(T object)
Performs an operation on the indicated object.
-
-
-
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.
-
-