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
A
FilterReader
that copies the bytes being passed through
to a given Writer
. This is in analogy with the UNIX "tee" command.-
Field Summary
Fields inherited from class java.io.FilterReader
in
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.FilterReader
mark, markSupported, ready, reset, skip
Methods inherited from class java.io.Reader
nullReader, read, read, transferTo
-
Constructor Details
-
TeeReader
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterReader
- Throws:
IOException
-
read
- Overrides:
read
in classFilterReader
- Throws:
IOException
-
read
- Overrides:
read
in classFilterReader
- Throws:
IOException
-