Class FastCsvSpreadSheetReader

    • Field Detail

      • 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_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).
    • Constructor Detail

      • FastCsvSpreadSheetReader

        public FastCsvSpreadSheetReader()
    • Method Detail

      • setQuoteCharacter

        public void setQuoteCharacter​(String value)
        Sets the character used for surrounding text.
        Parameters:
        value - the quote character
      • getQuoteCharacter

        public String getQuoteCharacter()
        Returns the string used for surrounding text.
        Returns:
        the quote character
      • quoteCharacterTipText

        public String quoteCharacterTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setSeparator

        public void setSeparator​(String value)
        Sets the string to use as separator for the columns, use '\t' for tab.
        Parameters:
        value - the separator
      • getSeparator

        public String getSeparator()
        Returns the string used as separator for the columns, '\t' for tab.
        Returns:
        the separator
      • separatorTipText

        public String separatorTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setNumericColumns

        public void setNumericColumns​(Range value)
        Sets the range of columns to treat as numeric.
        Parameters:
        value - the range
      • getNumericColumns

        public Range getNumericColumns()
        Returns the range of columns to treat as numeric.
        Returns:
        the range
      • numericColumnsTipText

        public String numericColumnsTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • setTrim

        public void setTrim​(boolean value)
        Sets whether to trim the cell content.
        Parameters:
        value - if true the content gets trimmed
      • getTrim

        public boolean getTrim()
        Returns whether to trim the cell content.
        Returns:
        true if to trim content
      • trimTipText

        public String trimTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • setFirstRow

        public void setFirstRow​(int value)
        Sets the first row to return.
        Specified by:
        setFirstRow in interface WindowedSpreadSheetReader
        Parameters:
        value - the first row (1-based), greater than 0
      • getFirstRow

        public int getFirstRow()
        Returns the first row to return.
        Specified by:
        getFirstRow in interface WindowedSpreadSheetReader
        Returns:
        the first row (1-based), greater than 0
      • firstRowTipText

        public String firstRowTipText()
        Returns the tip text for this property.
        Specified by:
        firstRowTipText in interface WindowedSpreadSheetReader
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setNumRows

        public void setNumRows​(int value)
        Sets the number of data rows to return.
        Specified by:
        setNumRows in interface WindowedSpreadSheetReader
        Parameters:
        value - the number of rows, -1 for unlimited
      • getNumRows

        public int getNumRows()
        Returns the number of data rows to return.
        Specified by:
        getNumRows in interface WindowedSpreadSheetReader
        Returns:
        the number of rows, -1 for unlimited
      • numRowsTipText

        public String numRowsTipText()
        Returns the tip text for this property.
        Specified by:
        numRowsTipText in interface WindowedSpreadSheetReader
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setNoHeader

        public void setNoHeader​(boolean value)
        Sets whether the file contains a header row or not.
        Specified by:
        setNoHeader in interface NoHeaderSpreadSheetReader
        Parameters:
        value - true if no header row available
      • getNoHeader

        public boolean getNoHeader()
        Returns whether the file contains a header row or not.
        Specified by:
        getNoHeader in interface NoHeaderSpreadSheetReader
        Returns:
        true if no header row available
      • noHeaderTipText

        public String noHeaderTipText()
        Returns the tip text for this property.
        Specified by:
        noHeaderTipText in interface NoHeaderSpreadSheetReader
        Returns:
        tip text for this property suitable for displaying in the gui