Class TextParser


public final class TextParser extends SingleParser
This class parses files in the plain-text format and converts them to XML.

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

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

    • TextParser

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

    • parse

      public 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