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, skip
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterReader
IOException
public int read() throws IOException
read
in class FilterReader
IOException
public int read(char[] cbuf, int off, int len) throws IOException
read
in class FilterReader
IOException
Copyright © 2001–2016. All rights reserved.