Package org.cactoos.io
Class TeeReader
- java.lang.Object
-
- java.io.Reader
-
- org.cactoos.io.TeeReader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Readable
public final class TeeReader extends Reader
Input to Output copying reader.There is no thread-safety guarantee.
- Since:
- 0.13
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
read(char[] cbuf, int offset, int length)
-
Methods inherited from class java.io.Reader
mark, markSupported, nullReader, read, read, read, ready, reset, skip, transferTo
-
-
-
-
Method Detail
-
read
public int read(char[] cbuf, int offset, int length) throws IOException
- Specified by:
read
in classReader
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classReader
- Throws:
IOException
-
-