Class SingleParser

  • Direct Known Subclasses:
    CsvParser, SAXWrapper, XMLParser

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

      • builder

        protected Builder builder
        Builder reference.
    • Constructor Detail

      • SingleParser

        protected SingleParser​(IO source,
                               MainOptions options)
        Constructor.
        Parameters:
        source - input source
        options - main options
    • Method Detail

      • parse

        public final void parse​(Builder build)
                         throws IOException
        Description copied from class: Parser
        Parses all nodes and sends events to the specified builder.
        Overrides:
        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