public class MultiReader
extends java.io.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(java.util.List<java.io.Reader> delegates) |
MultiReader(java.io.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(java.util.List<java.io.Reader> delegates)
public MultiReader(java.io.Reader[] delegates)
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Readerjava.io.IOExceptionpublic int read()
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 int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
read in class java.io.Readerjava.io.IOException