Class RowWiseSpreadSheetSpectrumReader.SingleSheetIterator

    • Field Detail

      • m_Sheets

        protected List<adams.data.spreadsheet.SpreadSheet> m_Sheets
        the list of sheets.
    • Constructor Detail

      • SingleSheetIterator

        public SingleSheetIterator​(adams.data.io.input.SpreadSheetReader reader,
                                   File input)
        Initializes the iterator.
        Parameters:
        reader - the reader to use
        input - the file to read from
    • Method Detail

      • sheet

        protected List<adams.data.spreadsheet.SpreadSheet> sheet()
        Reads the sheets if necessary and returns them.
        Returns:
        the sheets to iterate over
      • hasNext

        public boolean hasNext()
        Returns true if the iteration has more elements. (In other words, returns true if next() would return an element rather than throwing an exception.)
        Returns:
        true if the iteration has more elements
      • next

        public adams.data.spreadsheet.SpreadSheet next()
        Returns the next element in the iteration.
        Returns:
        the next element in the iteration
        Throws:
        NoSuchElementException - if the iteration has no more elements