Class AccessSpreadSheetReader.ChunkReader

    • Field Detail

      • m_Table

        protected com.healthmarketscience.jackcess.Table m_Table
        the table in use.
      • m_ChunkSize

        protected int m_ChunkSize
        the chunk size.
      • m_RowCount

        protected int m_RowCount
        the rows read so far.
      • m_FirstRow

        protected int m_FirstRow
        the first row to retrieve (1-based).
      • m_NumRows

        protected int m_NumRows
        the number of rows to retrieve (less than 1 = unlimited).
    • Constructor Detail

      • ChunkReader

        public ChunkReader​(AccessSpreadSheetReader owner)
        Initializes the low-level reader.
        Parameters:
        owner - the owning reader
    • Method Detail

      • next

        public SpreadSheet next()
        Reads the next chunk.
        Returns:
        the next chunk
      • close

        protected void close()
        Closes the reader.
      • hasNext

        public boolean hasNext()
        Returns whether there is more data to be read.
        Returns:
        true if more data available
      • read

        public SpreadSheet read​(com.healthmarketscience.jackcess.Table table)
        Reads the spreadsheet content from the specified table.
        Parameters:
        table - the table to read from
        Returns:
        the spreadsheet or null in case of an error