nu.validator.saxtree
Class TreeParser
java.lang.Object
nu.validator.saxtree.TreeParser
- All Implemented Interfaces:
- Locator
public final class TreeParser
- extends Object
- implements Locator
A tree visitor that replays a tree as SAX events.
- Version:
- $Id$
- Author:
- hsivonen
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeParser
public TreeParser(ContentHandler contentHandler,
LexicalHandler lexicalHandler)
- The constructor.
- Parameters:
contentHandler - must not be nulllexicalHandler - may be null
parse
public void parse(Node node)
throws SAXException
- Causes SAX events for the tree rooted at the argument to be emitted.
startDocument() and endDocument() are only
emitted for a Document node.
- Parameters:
node - the root
- Throws:
SAXException
getColumnNumber
public int getColumnNumber()
- Specified by:
getColumnNumber in interface Locator
- See Also:
Locator.getColumnNumber()
getLineNumber
public int getLineNumber()
- Specified by:
getLineNumber in interface Locator
- See Also:
Locator.getLineNumber()
getPublicId
public String getPublicId()
- Specified by:
getPublicId in interface Locator
- See Also:
Locator.getPublicId()
getSystemId
public String getSystemId()
- Specified by:
getSystemId in interface Locator
- See Also:
Locator.getSystemId()
Copyright © 2012. All Rights Reserved.