Class RowWiseSpreadSheetSpectrumReader.ChunkedSheetIterator

    • Field Detail

      • m_Chunk

        protected adams.data.spreadsheet.SpreadSheet m_Chunk
        the next chunk.
    • Constructor Detail

      • ChunkedSheetIterator

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

      • chunk

        protected adams.data.spreadsheet.SpreadSheet chunk()
        Reads the next chunk if necessary.
        Returns:
        the next chunk, null if none available
      • 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