Package org.apache.commons.io.input
Class SequenceReader
java.lang.Object
java.io.Reader
org.apache.commons.io.input.SequenceReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Readable
Provides the contents of multiple
Reader
s in sequence.
Like SequenceInputStream
but for Reader
arguments.
- Since:
- 2.7
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSequenceReader
(Reader... readers) Constructs a new instance with readersSequenceReader
(Iterable<? extends Reader> readers) Constructs a new instance with readers -
Method Summary
-
Constructor Details
-
SequenceReader
Constructs a new instance with readers- Parameters:
readers
- the readers to read
-
SequenceReader
Constructs a new instance with readers- Parameters:
readers
- the readers to read
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classReader
- Throws:
IOException
-
read
- Overrides:
read
in classReader
- Throws:
IOException
-
read
- Specified by:
read
in classReader
- Throws:
IOException
-