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
SAXException
antlr.ANTLRException
IOException
public void parse(String publicId, String systemId, String rootElement, InputStream in) throws SAXException, antlr.ANTLRException
SAXException
antlr.ANTLRException
public void parse(String publicId, String systemId, String rootElement, Reader in) throws SAXException, antlr.ANTLRException
SAXException
antlr.ANTLRException
public void parse(String publicId, String systemId, String rootElement, antlr.InputBuffer in) throws SAXException, antlr.ANTLRException
SAXException
antlr.ANTLRException
protected 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.ANTLRException
see also the complete user documentation .