Package eu.bandm.tools.xantlr
Class DocumentParser
java.lang.Object
eu.bandm.tools.xantlr.DocumentParser
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract antlr.CharScanner
createLexer
(antlr.LexerSharedInputState in) protected abstract antlr.Parser
createParser
(antlr.TokenStream in) void
void
parse
(String publicId, String systemId, String rootElement, InputStream in) void
void
protected abstract void
parseRootElement
(String rootElement) void
setContentHandler
(ContentHandler handler) void
-
Constructor Details
-
DocumentParser
public DocumentParser()
-
-
Method Details
-
setContentHandler
-
setDefaultContentHandler
public void setDefaultContentHandler() -
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
-
createParser
protected abstract antlr.Parser createParser(antlr.TokenStream in) -
parseRootElement
- Throws:
antlr.ANTLRException
-