org.codehaus.janino.util

Class TeeReader

public class TeeReader extends FilterReader

A java.io.FilterReader that copies the bytes being passed through to a given java.io.Writer. This is in analogy with the UNIX "tee" command.
Constructor Summary
TeeReader(Reader in, Writer out, boolean closeWriterOnEOF)
Method Summary
voidclose()
intread()
intread(char[] cbuf, int off, int len)

Constructor Detail

TeeReader

public TeeReader(Reader in, Writer out, boolean closeWriterOnEOF)

Method Detail

close

public void close()

read

public int read()

read

public int read(char[] cbuf, int off, int len)