Open | Initialization. |
Process | Doing the work. |
Close | Finalization. |
open() |
Reads command parameters/switches and opens files. |
process() |
Processes a set of data. (Called many times.) |
close() |
Closes any files, reports back any results. |
Primitive
which extends from
Command
. Command
has a run()
method that
handles the calling of open()
, process()
(many times),
and close()
.