public class ProgressRowSequence extends WrapperRowSequence
ProgressIndicator.
Has to contain a couple methods extra to the RowSequence
interface to make it behave properly.baseSeq| Constructor and Description |
|---|
ProgressRowSequence(StarTable table,
ProgressIndicator indicator,
java.lang.String stage)
Constructs a new ProgressRowSequence.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Indicates that progress is at an end.
|
boolean |
next()
Attempts to advances the current row to the next one.
|
boolean |
nextProgress()
Invokes
next() and also updates the progress indicator. |
getCell, getRow, toStringpublic ProgressRowSequence(StarTable table, ProgressIndicator indicator, java.lang.String stage) throws java.io.IOException
table - table to get the base row sequence fromindicator - indicator to be informed about progressstage - string describing this stage of the processjava.io.IOExceptionpublic boolean nextProgress()
throws java.io.IOException,
java.lang.InterruptedException
next() and also updates the progress indicator.java.io.IOExceptionjava.lang.InterruptedExceptionpublic boolean next()
throws java.io.IOException
RowSequenceRowSequence.getCell(int) or RowSequence.getRow() methods.next in interface RowSequencenext in class WrapperRowSequencejava.io.IOException - if there is some errorpublic void close()
throws java.io.IOException
close in interface RowSequenceclose in class WrapperRowSequencejava.io.IOExceptionCopyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.