public class TransformingWriter extends PipedWriter
____ _________ / \/ \ |this - PR --> W | | PW | T | \____/ \________/ PR: piped reader, this PW: this writer, T: transformerThis writer can be instantiated with another Writer and a CharTransformer. All writing will be transformed by the given CharTransformer before arriving at the given Writer. When ready, this TransformingWriter should be 'closed'. A coding example can be found in this classe's main method.
ChainedCharTransformer,
TransformingReader| Constructor and Description |
|---|
TransformingWriter(Writer out,
CharTransformer charTransformer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Also closes the wrapped Writer.
|
Throwable |
getException() |
static void |
main(String[] args) |
protected void |
waitUntilReady() |
connect, flush, write, writepublic TransformingWriter(Writer out, CharTransformer charTransformer)
protected void waitUntilReady()
throws IOException
IOExceptionpublic Throwable getException()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class PipedWriterIOExceptionpublic static void main(String[] args)
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}