Class SequentialJELRowReader

  • All Implemented Interfaces:
    uk.ac.starlink.table.RowSequence

    public class SequentialJELRowReader
    extends StarTableJELRowReader
    implements uk.ac.starlink.table.RowSequence
    Implements JELRowReader for sequential access to a table. This class also implements RowSequence, and this object should be treated in the same way as a row sequence taken out on its table, that is iteration should proceed using the next and close methods.
    Since:
    8 Feb 2005
    Author:
    Mark Taylor (Starlink)
    • Constructor Detail

      • SequentialJELRowReader

        public SequentialJELRowReader​(uk.ac.starlink.table.StarTable table)
                               throws java.io.IOException
        Constructs a new row reader for sequential access. This constructor also takes out a row sequence on table.
        Parameters:
        table - table to read
        Throws:
        java.io.IOException
    • Method Detail

      • getCell

        public java.lang.Object getCell​(int icol)
                                 throws java.io.IOException
        Description copied from class: StarTableJELRowReader
        Returns the value for a given column in this reader's table at the current row.
        Specified by:
        getCell in interface uk.ac.starlink.table.RowSequence
        Specified by:
        getCell in class StarTableJELRowReader
        Parameters:
        icol - column index
        Returns:
        contents of column icol at the current row
        Throws:
        java.io.IOException
      • getRow

        public java.lang.Object[] getRow()
                                  throws java.io.IOException
        Specified by:
        getRow in interface uk.ac.starlink.table.RowSequence
        Throws:
        java.io.IOException
      • next

        public boolean next()
                     throws java.io.IOException
        Specified by:
        next in interface uk.ac.starlink.table.RowSequence
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface uk.ac.starlink.table.RowSequence
        Throws:
        java.io.IOException