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 Closeable
close
in interface AutoCloseable
close
in class Reader
IOException
public int read() throws IOException
read
in class Reader
IOException
public long skip(long n) throws IOException
skip
in class Reader
IOException
public int read(char[] cbuf, int off, int len) throws IOException
read
in class Reader
IOException
Copyright © 2001–2016. All rights reserved.