Package nu.validator.saxtree
Class TreeParser
java.lang.Object
nu.validator.saxtree.TreeParser
A tree visitor that replays a tree as SAX events.
- Version:
- $Id$
- Author:
- hsivonen
-
Constructor Summary
ConstructorsConstructorDescriptionTreeParser(ContentHandler contentHandler, LexicalHandler lexicalHandler) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionintintvoidCauses SAX events for the tree rooted at the argument to be emitted.
-
Constructor Details
-
TreeParser
The constructor.- Parameters:
contentHandler- must not benulllexicalHandler- may benull
-
-
Method Details
-
parse
Causes SAX events for the tree rooted at the argument to be emitted.startDocument()andendDocument()are only emitted for aDocumentnode.- Parameters:
node- the root- Throws:
SAXException
-
getColumnNumber
public int getColumnNumber()- Specified by:
getColumnNumberin interfaceLocator- See Also:
-
getLineNumber
public int getLineNumber()- Specified by:
getLineNumberin interfaceLocator- See Also:
-
getPublicId
- Specified by:
getPublicIdin interfaceLocator- See Also:
-
getSystemId
- Specified by:
getSystemIdin interfaceLocator- See Also:
-
getXMLVersion
- Specified by:
getXMLVersionin interfaceLocator2- See Also:
-
getEncoding
- Specified by:
getEncodingin interfaceLocator2- See Also:
-