public class MonitoredIterativeReader<T> extends Object implements IterativeReader<T>
EMPTY_READER| Constructor and Description |
|---|
MonitoredIterativeReader(IterativeReader<T> reader) |
MonitoredIterativeReader(IterativeReader<T> reader,
ConsoleProgressBar.View view) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the reader and releases any system resources associated with
it.
|
int |
getValue() |
boolean |
hasNext()
Returns
true if the reader has more elements. |
T |
next()
Returns the next element in the reader.
|
void |
setProgressBarPrintStream(PrintStream ps) |
public MonitoredIterativeReader(IterativeReader<T> reader)
public MonitoredIterativeReader(IterativeReader<T> reader, ConsoleProgressBar.View view)
public void setProgressBarPrintStream(PrintStream ps)
public 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 occurspublic int getValue()
Copyright © 2016. All Rights Reserved.