Closeable
, AutoCloseable
, Readable
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 | 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, skip
public void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
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–2019. All rights reserved.