org.mmbase.util.transformers
Class TransformingWriter
java.lang.Object
java.io.Writer
java.io.PipedWriter
org.mmbase.util.transformers.TransformingWriter
- public class TransformingWriter
- extends java.io.PipedWriter
A Filtering Writer based on CharTransformers.
____ _________
/ \/ \
|this - PR --> W |
| PW | T |
\____/ \________/
PR: piped reader, this PW: this writer, T: transformer
This writer can be instantiated with another Writer and a CharTransformer. All writing will be transformed by the given
CharTransformer before ariving at the give Writer.
When ready, this TransformingWriter should be 'closed'. A coding example can be found in this classe's main method.
- Since:
- MMBase-1.7
- Author:
- Michiel Meeuwissen
- See Also:
ChainedCharTransformer
| Fields inherited from class java.io.Writer |
lock |
|
Method Summary |
void |
close()
|
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.io.PipedWriter |
connect, flush, write, write |
| Methods inherited from class java.io.Writer |
write, write, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransformingWriter
public TransformingWriter(java.io.Writer out,
CharTransformer ct)
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- Throws:
java.io.IOException
MMBase build 1.7.1.20041002