public class TransformingReader extends PipedReader
_________ ____ / \/ \ | R --> PW - this | | T | PR | \_________/ \____/ PW: piped writer, this PR: this reader, T: transformerThis reader can be instantiated with another Reader and a CharTransformer. All reading from this reader will be transformed output from reading on the given Reader.
ChainedCharTransformer,
TransformingWriter| Constructor and Description |
|---|
TransformingReader(Reader in,
CharTransformer charTransformer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Also closes the wrapped Reader.
|
static void |
main(String[] args) |
int |
read() |
int |
read(char[] cbuf,
int off,
int len) |
protected void |
waitReady()
Wait until the transformation is ready
|
connect, readypublic TransformingReader(Reader in, CharTransformer charTransformer)
public int read()
throws IOException
read in class PipedReaderIOExceptionpublic int read(char[] cbuf,
int off,
int len)
throws IOException
read in class PipedReaderIOExceptionprotected void waitReady()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class PipedReaderIOExceptionpublic static void main(String[] args)
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}