public class MultiReader extends Reader
FilterReader, but when the first delegate is at end-of-input, it continues with reading from the
next delegate.
This Reader does not support MARK.
| Constructor and Description |
|---|
MultiReader(List<Reader> delegates) |
MultiReader(Reader[] delegates) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes all delegates.
|
int |
read() |
int |
read(char[] cbuf,
int off,
int len) |
long |
skip(long n) |
public MultiReader(Reader[] delegates)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class ReaderIOExceptionpublic int read()
throws IOException
read in class ReaderIOExceptionpublic long skip(long n)
throws IOException
skip in class ReaderIOExceptionpublic int read(@Nullable char[] cbuf, int off, int len) throws IOException
read in class ReaderIOException