class MultiReader
extends java.io.Reader
Reader that concatenates multiple readers.| Modifier and Type | Field and Description |
|---|---|
private java.io.Reader |
current |
private java.util.Iterator<? extends CharSource> |
it |
| Constructor and Description |
|---|
MultiReader(java.util.Iterator<? extends CharSource> readers) |
| Modifier and Type | Method and Description |
|---|---|
private void |
advance()
Closes the current reader and opens the next one, if any.
|
void |
close() |
int |
read(char[] cbuf,
int off,
int len) |
boolean |
ready() |
long |
skip(long n) |
private final java.util.Iterator<? extends CharSource> it
@CheckForNull private java.io.Reader current
MultiReader(java.util.Iterator<? extends CharSource> readers) throws java.io.IOException
java.io.IOExceptionprivate void advance()
throws java.io.IOException
java.io.IOExceptionpublic int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.Readerjava.io.IOExceptionpublic boolean ready()
throws java.io.IOException
ready in class java.io.Readerjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Readerjava.io.IOException