Package com.google.common.io
Class MultiReader
java.lang.Object
java.io.Reader
com.google.common.io.MultiReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Readable
A
Reader
that concatenates multiple readers.- Since:
- 1.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.Reader
mark, markSupported, nullReader, read, read, read, reset, transferTo
-
Field Details
-
it
-
current
-
-
Constructor Details
-
MultiReader
MultiReader(Iterator<? extends CharSource> readers) throws IOException - Throws:
IOException
-
-
Method Details
-
advance
Closes the current reader and opens the next one, if any.- Throws:
IOException
-
read
- Specified by:
read
in classReader
- Throws:
IOException
-
skip
- Overrides:
skip
in classReader
- Throws:
IOException
-
ready
- Overrides:
ready
in classReader
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classReader
- Throws:
IOException
-