Class FastCsvSpreadSheetReader.ChunkReader

    • Field Detail

      • m_MissingValue

        protected BaseRegExp m_MissingValue
        the missing value.
      • m_QuoteCharacter

        protected String m_QuoteCharacter
        the quote character.
      • m_Separator

        protected String m_Separator
        the column separator.
      • m_NumericColumns

        protected Range m_NumericColumns
        the columns to treat as numeric.
      • m_NumericCols

        protected boolean[] m_NumericCols
        the numeric columns.
      • m_Trim

        protected boolean m_Trim
        whether to trim the cell content.
      • m_NoHeader

        protected boolean m_NoHeader
        whether the file has a header or not.
      • m_CustomColumnHeaders

        protected String m_CustomColumnHeaders
        the comma-separated list of column header names.
      • 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).
      • m_ChunkSize

        protected int m_ChunkSize
        the chunk size to use.
      • m_RowCount

        protected int m_RowCount
        the rows read so far.
    • Constructor Detail

      • ChunkReader

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

      • 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
      • next

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

        public SpreadSheet read​(Reader r)
        Reads the spreadsheet content from the specified reader.
        Parameters:
        r - the reader to read from
        Returns:
        the spreadsheet or null in case of an error