Constructor and Description |
---|
TreeParser(ContentHandler contentHandler,
LexicalHandler lexicalHandler)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumnNumber() |
int |
getLineNumber() |
String |
getPublicId() |
String |
getSystemId() |
void |
parse(Node node)
Causes SAX events for the tree rooted at the argument to be emitted.
|
public TreeParser(ContentHandler contentHandler, LexicalHandler lexicalHandler)
contentHandler
- must not be null
lexicalHandler
- may be null
public void parse(Node node) throws SAXException
startDocument()
and endDocument()
are only
emitted for a Document
node.node
- the rootSAXException
public int getColumnNumber()
getColumnNumber
in interface Locator
Locator.getColumnNumber()
public int getLineNumber()
getLineNumber
in interface Locator
Locator.getLineNumber()
public String getPublicId()
getPublicId
in interface Locator
Locator.getPublicId()
public String getSystemId()
getSystemId
in interface Locator
Locator.getSystemId()
Copyright © 2017. All rights reserved.