org.codehaus.janino.util
Class TeeReader
java.lang.Object
java.io.Reader
java.io.FilterReader
org.codehaus.janino.util.TeeReader
- public class TeeReader
- extends FilterReader
A FilterReader
that copies the bytes being passed through
to a given Writer
. This is in analogy with the UNIX "tee" command.
Method Summary |
void |
close()
|
int |
read()
|
int |
read(char[] cbuf,
int off,
int len)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TeeReader
public TeeReader(Reader in,
Writer out,
boolean closeWriterOnEOF)
close
public void close()
throws IOException
- Throws:
IOException
read
public int read()
throws IOException
- Throws:
IOException
read
public int read(char[] cbuf,
int off,
int len)
throws IOException
- Throws:
IOException