public abstract class DocumentParser extends Object
| Constructor and Description |
|---|
DocumentParser() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract antlr.CharScanner |
createLexer(antlr.LexerSharedInputState in) |
protected abstract antlr.Parser |
createParser(antlr.TokenStream in) |
ContentHandler |
getContentHandler() |
void |
parse(String publicId,
String systemId,
String rootElement,
antlr.InputBuffer in) |
void |
parse(String publicId,
String systemId,
String rootElement,
InputStream in) |
void |
parse(String publicId,
String systemId,
String rootElement,
Reader in) |
void |
parse(String publicId,
String systemId,
String rootElement,
URL in) |
protected abstract void |
parseRootElement(String rootElement) |
void |
setContentHandler(ContentHandler handler) |
void |
setDefaultContentHandler() |
public void setContentHandler(ContentHandler handler)
public void setDefaultContentHandler()
public ContentHandler getContentHandler()
public void parse(String publicId, String systemId, String rootElement, URL in) throws SAXException, antlr.ANTLRException, IOException
SAXExceptionantlr.ANTLRExceptionIOExceptionpublic void parse(String publicId, String systemId, String rootElement, InputStream in) throws SAXException, antlr.ANTLRException
SAXExceptionantlr.ANTLRExceptionpublic void parse(String publicId, String systemId, String rootElement, Reader in) throws SAXException, antlr.ANTLRException
SAXExceptionantlr.ANTLRExceptionpublic void parse(String publicId, String systemId, String rootElement, antlr.InputBuffer in) throws SAXException, antlr.ANTLRException
SAXExceptionantlr.ANTLRExceptionprotected abstract antlr.CharScanner createLexer(antlr.LexerSharedInputState in)
protected abstract antlr.Parser createParser(antlr.TokenStream in)
protected abstract void parseRootElement(String rootElement) throws antlr.ANTLRException
antlr.ANTLRExceptionsee also the complete user documentation .