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
private java.io.Reader current
MultiReader(java.util.Iterator<? extends CharSource> readers) throws java.io.IOException
java.io.IOException
private void advance() throws java.io.IOException
java.io.IOException
public int read(char[] cbuf, int off, int len) throws java.io.IOException
read
in class java.io.Reader
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.Reader
java.io.IOException
public boolean ready() throws java.io.IOException
ready
in class java.io.Reader
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Reader
java.io.IOException