public class MultiReader extends Reader
Constructor and Description |
---|
MultiReader(Iterator<Reader> readerIterator)
Creates a new
MultiReader instance. |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
read(char[] outputBuffer,
int offset,
int length) |
boolean |
ready() |
public MultiReader(Iterator<Reader> readerIterator)
MultiReader
instance.readerIterator
- Iterator
, called whenever the next Reader
needs to be
supplied. If it has no next element, the MultiReader
is closed.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Reader
IOException
public int read(@Nullable char[] outputBuffer, int offset, int length) throws IOException
read
in class Reader
IOException
public boolean ready() throws IOException
ready
in class Reader
IOException
Copyright © 2025. All rights reserved.