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.| Constructor and Description |
|---|
TeeReader(java.io.Reader in,
java.io.Writer out,
boolean closeWriterOnEof) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read() |
int |
read(char[] cbuf,
int off,
int len) |
public TeeReader(java.io.Reader in,
java.io.Writer out,
boolean closeWriterOnEof)
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.FilterReaderjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.FilterReaderjava.io.IOExceptionpublic int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
read in class java.io.FilterReaderjava.io.IOException