Closeable, AutoCloseable, Readablepublic 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 | Description |
|---|---|
TeeReader(Reader in,
Writer out,
boolean closeWriterOnEof) |
| Modifier and Type | Method | 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 AutoCloseableclose in interface Closeableclose in class FilterReaderIOExceptionpublic int read()
throws IOException
read in class FilterReaderIOExceptionpublic int read(char[] cbuf,
int off,
int len)
throws IOException
read in class FilterReaderIOExceptionCopyright © 2001–2019. All rights reserved.