| A CharTransformer which wraps N other CharTransformers, and links them with N - 1 new Threads,
effectively working as a 'chained' transformer.
The first transformation is done by the ChainedCharTransformer instance itself, after starting
the N - 1 Threads for the other N - 1 transformations.
If no CharTransformers are added, and 'transform' is called, logically, nothing will happen. Add
the CopyCharTransformer if necessary.
Schematicly:
new ChainedCharTransformer().add(T1).add(T2)....add(TN).transform(R, W);
___________ __________ _________
/ \/ \ / \
| R --> PW - PR --> PW -...- PR --> W |
| T1 | T2 | | TN |
\___________/ \_________/ \_________/
R: reader, PR: piped reader, W: writer, PW, piped writer, T1 - TN: transformers
author: Michiel Meeuwissen since: MMBase-1.7 version: $Id: ChainedCharTransformer.java,v 1.26 2007/06/13 07:51:41 michiel Exp $ |