Closeable, AutoCloseable, Readablepublic 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 | Description |
|---|---|
MultiReader(Reader[] delegates) |
|
MultiReader(List<Reader> delegates) |
| Modifier and Type | Method | 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 AutoCloseableclose in interface Closeableclose in class ReaderIOExceptionpublic int read()
throws IOException
read in class ReaderIOExceptionpublic long skip(long n)
throws IOException
skip in class ReaderIOExceptionpublic int read(char[] cbuf,
int off,
int len)
throws IOException
read in class ReaderIOExceptionCopyright © 2001–2019. All rights reserved.