public class TeeReader
extends java.io.FilterReader
FilterReader
that copies the bytes being passed through
to a given Writer
. This is in analogy with the UNIX "tee" command.public TeeReader(java.io.Reader in, java.io.Writer out, boolean closeWriterOnEOF)
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.FilterReader
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.FilterReader
java.io.IOException
public int read(char[] cbuf, int off, int len) throws java.io.IOException
read
in class java.io.FilterReader
java.io.IOException
Copyright © 2001-2012. All Rights Reserved.