public class ConcatIterativeReader<T> extends Object implements IterativeReader<T>
EMPTY_READER| Constructor and Description |
|---|
ConcatIterativeReader(Collection<IterativeReader<T>> inputs)
Create an IterativeReader that iterates over the readers in
inputs |
ConcatIterativeReader(IterativeReader<T>... readers)
Create an IterativeReader that iterates over the readers in
readers |
public ConcatIterativeReader(IterativeReader<T>... readers)
readersreaders - the readers to combine into one IterativeReaderpublic ConcatIterativeReader(Collection<IterativeReader<T>> inputs)
inputsinputs - an iterator that contains the readers that are to be concatenatedpublic boolean hasNext()
IterativeReadertrue if the reader has more elements.
(In other words, returns true if IterativeReader.next() would
return an element rather than throwing an exception.)hasNext in interface IterativeReader<T>true if the reader has more elementspublic T next() throws IOException
IterativeReadernext in interface IterativeReader<T>IOException - if there is an io exceptionpublic void close()
throws IOException
IterativeReaderclose in interface IterativeReader<T>IOException - If an I/O error occursCopyright © 2016. All Rights Reserved.