Package uk.ac.starlink.table
Interface TableSequence
-
- All Known Implementing Classes:
QueueTableSequence
public interface TableSequence
Iterator over tables. Unlike thejava.util.Iterator
interface, thenextTable
method 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 StarTable
nextTable()
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
-
-