Class CsvOptions

  • All Implemented Interfaces:
    Iterable<Option<?>>
    Direct Known Subclasses:
    CsvParserOptions

    public class CsvOptions
    extends Options
    Options for parsing and serializing CSV data.
    Author:
    BaseX Team 2005-24, BSD License, Christian Gruen
    • Constructor Detail

      • CsvOptions

        public CsvOptions()
        Default constructor.
    • Method Detail

      • assign

        public void assign​(String name,
                           String value)
                    throws BaseXException
        Description copied from class: Options
        Assigns a value after casting it to the correct type. If the option is unknown, it will be added as free option.
        Overrides:
        assign in class Options
        Parameters:
        name - name of option
        value - value
        Throws:
        BaseXException - database exception
      • assign

        public void assign​(Item name,
                           Value value,
                           QueryError error,
                           InputInfo info)
                    throws QueryException
        Description copied from class: Options
        Assigns a value after casting it to the correct type. If the option is unknown, it will be added as free option.
        Overrides:
        assign in class Options
        Parameters:
        name - name of option
        value - value to be assigned
        error - error to be raised if option is unknown (can be null)
        info - input info (can be null)
        Throws:
        QueryException - query exception
      • separator

        public int separator()
        Returns the separator character or -1 if character is invalid.
        Returns:
        separator