Class TableData


  • public abstract class TableData
    extends java.lang.Object
    Contains the data from a table in easy to digest form (no IOExceptions). Suitable for holding small tables.
    Since:
    9 Oct 2018
    Author:
    Mark Taylor
    • Constructor Detail

      • TableData

        public TableData()
    • Method Detail

      • getRowCount

        public abstract int getRowCount()
        Returns number of rows.
        Returns:
        row count
      • getCell

        public abstract java.lang.Object getCell​(int irow,
                                                 int icol)
        Returns the value of a cell.
        Parameters:
        irow - row index
        icol - column index
      • createTableData

        public static TableData createTableData​(Reporter reporter,
                                                uk.ac.starlink.table.StarTable table)
        Adapts a StarTable to a TableData. In case of trouble, null is returned and messages are reported as appropriate.
        Parameters:
        reporter - reporter
        table - input table
        Returns:
        table data