public class TeeReader extends FilterReader
FilterReader that copies the bytes being passed through to a given Writer. This is
in analogy with the UNIX "tee" command.in| Constructor and Description |
|---|
TeeReader(Reader in,
Writer out,
boolean closeWriterOnEof) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read() |
int |
read(char[] cbuf,
int off,
int len) |
mark, markSupported, ready, reset, skippublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterReaderIOExceptionpublic int read()
throws IOException
read in class FilterReaderIOExceptionpublic int read(@Nullable char[] cbuf, int off, int len) throws IOException
read in class FilterReaderIOExceptionCopyright © 2019. All rights reserved.