Class SingleParser

Direct Known Subclasses:
CsvParser, SAXWrapper, TextParser, XMLParser

public abstract class SingleParser extends Parser
This class defines an abstract parser for single resources.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Field Details

    • builder

      protected Builder builder
      Builder reference.
  • Constructor Details

    • SingleParser

      protected SingleParser(IO source, MainOptions opts)
      Constructor.
      Parameters:
      source - input source
      opts - database options
  • Method Details

    • parse

      public final void parse(Builder build) throws IOException
      Description copied from class: Parser
      Parses all nodes and sends events to the specified builder.
      Specified by:
      parse in class Parser
      Parameters:
      build - database builder
      Throws:
      IOException - I/O exception
    • parse

      protected abstract void parse() throws IOException
      Parses the current input.
      Throws:
      IOException - I/O exception