Package org.codehaus.janino.util
Class TeeReader
- java.lang.Object
-
- java.io.Reader
-
- java.io.FilterReader
-
- org.codehaus.janino.util.TeeReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
public class TeeReader extends FilterReader
AFilterReaderthat copies the bytes being passed through to a givenWriter. This is in analogy with the UNIX "tee" command.
-
-
Field Summary
-
Fields inherited from class java.io.FilterReader
in
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intread()intread(char[] cbuf, int off, int len)-
Methods inherited from class java.io.FilterReader
mark, markSupported, ready, reset, skip
-
Methods inherited from class java.io.Reader
nullReader, read, read, transferTo
-
-
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterReader- Throws:
IOException
-
read
public int read() throws IOException- Overrides:
readin classFilterReader- Throws:
IOException
-
read
public int read(char[] cbuf, int off, int len) throws IOException- Overrides:
readin classFilterReader- Throws:
IOException
-
-