Text-Zap was designed to not just meet my needs but hopefully the needs of others as well. To that end Text-Zap was built on top of Ant which has industry wide acceptance and is known for its flexibility.
There are two main parts to Text-Zap, the Ant task, and the individual filters.
The Text-Zap Ant Task is the driver for Text-Zap and is responsible to make things happen. It performs three tasks:
All the files are passed to each filter at once. This allows the filters to not only modify the text in the files, but it can manipulate the files themselves, such as break them apart or put them together.
There are several general properties that the Ant task controls that effect the entire application. These include the file encoding and overwrite permissions to name a few.
For more information about using the Ant Task, see the Text-Zap Ant Task page.
For more specifics on the Text-ZapTask class see the api documents.
The Text-Zap filters do the real work. Each filter is assigned a specific job. The real power of the filters is when they are chained together.