public class DocumentNavigationHandler extends DefaultHandler implements DocumentNavigationExtensionConstants
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log
Logger instance
|
BOOKMARK, BOOKMARK_TREE, GOTO_URI, GOTO_XY, LINK, NAMED_DESTINATION, NAMESPACE, PREFIX
Constructor and Description |
---|
DocumentNavigationHandler(IFDocumentNavigationHandler navHandler,
Map<String,StructureTreeElement> structureTreeElements,
Map<String,GoToXYAction> unresolvedIds)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endDocument() |
void |
endElement(String uri,
String localName,
String qName) |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public DocumentNavigationHandler(IFDocumentNavigationHandler navHandler, Map<String,StructureTreeElement> structureTreeElements, Map<String,GoToXYAction> unresolvedIds)
navHandler
- the navigation handler that will receive the eventsstructureTreeElements
- the elements representing the structure of the documentpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class DefaultHandler
SAXException
Copyright © 2025 Apache Software Foundation. All rights reserved.