Package uk.ac.starlink.table
Interface TableSequence
-
- All Known Implementing Classes:
QueueTableSequence
public interface TableSequenceIterator over tables. Unlike thejava.util.Iteratorinterface, thenextTablemethod throws a checked exception.A suitable looping idiom is
TableSequence tseq = getTableSequence(); for (StarTable table; (table = tseq.nextTable()) != null;) { doStuff(table); }- Since:
- 5 Jul 2010
- Author:
- Mark Taylor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StarTablenextTable()Returns the next table in the sequence, or null if the end of the sequence is reached.
-
-
-
Method Detail
-
nextTable
StarTable nextTable() throws java.io.IOException
Returns the next table in the sequence, or null if the end of the sequence is reached.- Returns:
- next table, or null if there are no more
- Throws:
java.io.IOException- if there is an error obtaining the table
-
-