RowSequence
public class ProgressRowSequence extends WrapperRowSequence
ProgressIndicator
.
Has to contain a couple methods extra to the RowSequence
interface to make it behave properly.baseSeq
Constructor | Description |
---|---|
ProgressRowSequence(StarTable table,
ProgressIndicator indicator,
java.lang.String stage) |
Constructs a new ProgressRowSequence.
|
Modifier and Type | Method | 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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCell, getRow, toString
public 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.IOException
public boolean nextProgress() throws java.io.IOException, java.lang.InterruptedException
next()
and also updates the progress indicator.java.io.IOException
java.lang.InterruptedException
public boolean next() throws java.io.IOException
RowSequence
RowSequence.getCell(int)
or RowSequence.getRow()
methods.next
in interface RowSequence
next
in class WrapperRowSequence
java.io.IOException
- if there is some errorpublic void close() throws java.io.IOException
close
in interface RowSequence
close
in class WrapperRowSequence
java.io.IOException
Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.