uk.ac.starlink.table
Class ProgressLineStarTable
java.lang.Object
uk.ac.starlink.table.WrapperStarTable
uk.ac.starlink.table.ProgressLineStarTable
- All Implemented Interfaces:
- StarTable
public class ProgressLineStarTable
- extends WrapperStarTable
A WrapperStarTable which behaves the same as its base, except that
any RowSequence taken out on it will display an ASCII progress line
on a terminal describing how far through the table it's got.
It might decide not to do this if the table is very short.
Methods inherited from class uk.ac.starlink.table.WrapperStarTable |
checkedLongToInt, getBaseTable, getCell, getColumnAuxDataInfos, getColumnCount, getColumnInfo, getName, getParameterByName, getParameters, getRow, getRowCount, getURL, isRandom, setName, setParameter, setURL, toString |
ProgressLineStarTable
public ProgressLineStarTable(StarTable baseTable,
PrintStream out)
- Constructs a new ProgressLineStarTable.
- Parameters:
baseTable
- the base tableout
- stream on which progress will be written - this should
preferably be terminal-like, since it's going to have things
like carriage-returns ('\r') written to it
getRowSequence
public RowSequence getRowSequence()
throws IOException
- Description copied from interface:
StarTable
- Returns an object which can iterate over all the rows in the table
sequentially.
- Specified by:
getRowSequence
in interface StarTable
- Overrides:
getRowSequence
in class WrapperStarTable
- Returns:
- an object providing sequential access to the table data
- Throws:
IOException
- if there is an error providing access