Class SExpressionParser

java.lang.Object
name.jurgenei.gradle.xml.sexpr.SExpressionParser

public final class SExpressionParser extends Object
Parses bracket-based S-expression format into SAX events.
  • Constructor Details

    • SExpressionParser

      public SExpressionParser()
      Creates parser for bracket-based S-expression syntax.
  • Method Details

    • parse

      public void parse(Reader reader, ContentHandler handler) throws IOException, SAXException
      Parses S-expression input and emits equivalent SAX events.
      Parameters:
      reader - character stream containing S-expression document
      handler - SAX handler receiving parsed events
      Throws:
      IOException - if input is malformed or cannot be read
      SAXException - if SAX handler fails while consuming events
    • parse

      public void parse(Reader reader, ContentHandler handler, LexicalHandler lexical) throws IOException, SAXException
      Parses S-expression input and emits SAX events including optional lexical events.
      Parameters:
      reader - character stream containing S-expression document
      handler - SAX handler receiving parsed events
      lexical - optional lexical handler for comments
      Throws:
      IOException - if input is malformed or cannot be read
      SAXException - if SAX handler fails while consuming events