Class CsvParser


public final class CsvParser extends SingleParser
This class parses files in the CSV format and converts them to XML.

The parser provides some options, which can be specified via the MainOptions.CSVPARSER option.

Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Details

    • CsvParser

      public CsvParser(IO source, MainOptions opts)
      Constructor.
      Parameters:
      source - document source
      opts - database options
    • CsvParser

      public CsvParser(IO source, MainOptions opts, CsvParserOptions copts)
      Constructor.
      Parameters:
      source - document source
      opts - database options
      copts - parser options
  • Method Details

    • parse

      protected void parse() throws IOException
      Description copied from class: SingleParser
      Parses the current input.
      Specified by:
      parse in class SingleParser
      Throws:
      IOException - I/O exception
    • detailedInfo

      public String detailedInfo()
      Description copied from class: Job
      Returns detailed progress information. Can be overwritten to give more specific feedback.
      Overrides:
      detailedInfo in class Job
      Returns:
      header information
    • progressInfo

      public double progressInfo()
      Description copied from class: Job
      Returns a progress value (0 - 1). Can be overwritten to give more specific feedback.
      Overrides:
      progressInfo in class Job
      Returns:
      header information