Package eu.bandm.tools.xantlr
Class DocumentParser
java.lang.Object
eu.bandm.tools.xantlr.DocumentParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract antlr.CharScannercreateLexer(antlr.LexerSharedInputState in) protected abstract antlr.ParsercreateParser(antlr.TokenStream in) voidvoidparse(String publicId, String systemId, String rootElement, InputStream in) voidvoidprotected abstract voidparseRootElement(String rootElement) voidsetContentHandler(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:
SAXExceptionantlr.ANTLRExceptionIOException
-
parse
public void parse(String publicId, String systemId, String rootElement, InputStream in) throws SAXException, antlr.ANTLRException - Throws:
SAXExceptionantlr.ANTLRException
-
parse
public void parse(String publicId, String systemId, String rootElement, Reader in) throws SAXException, antlr.ANTLRException - Throws:
SAXExceptionantlr.ANTLRException
-
parse
public void parse(String publicId, String systemId, String rootElement, antlr.InputBuffer in) throws SAXException, antlr.ANTLRException - Throws:
SAXExceptionantlr.ANTLRException
-
createParser
protected abstract antlr.Parser createParser(antlr.TokenStream in) -
parseRootElement
- Throws:
antlr.ANTLRException
-