Class DocumentParser

java.lang.Object
eu.bandm.tools.xantlr.DocumentParser

public abstract class DocumentParser extends Object
  • Constructor Details

    • DocumentParser

      public DocumentParser()
  • Method Details

    • setContentHandler

      public void setContentHandler(ContentHandler handler)
    • setDefaultContentHandler

      public void setDefaultContentHandler()
    • getContentHandler

      public ContentHandler getContentHandler()
    • parse

      public void parse(String publicId, String systemId, String rootElement, URL in) throws SAXException, antlr.ANTLRException, IOException
      Throws:
      SAXException
      antlr.ANTLRException
      IOException
    • parse

      public void parse(String publicId, String systemId, String rootElement, InputStream in) throws SAXException, antlr.ANTLRException
      Throws:
      SAXException
      antlr.ANTLRException
    • parse

      public void parse(String publicId, String systemId, String rootElement, Reader in) throws SAXException, antlr.ANTLRException
      Throws:
      SAXException
      antlr.ANTLRException
    • parse

      public void parse(String publicId, String systemId, String rootElement, antlr.InputBuffer in) throws SAXException, antlr.ANTLRException
      Throws:
      SAXException
      antlr.ANTLRException
    • createLexer

      protected abstract antlr.CharScanner createLexer(antlr.LexerSharedInputState in)
    • createParser

      protected abstract antlr.Parser createParser(antlr.TokenStream in)
    • parseRootElement

      protected abstract void parseRootElement(String rootElement) throws antlr.ANTLRException
      Throws:
      antlr.ANTLRException