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, warningpublic 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 ContentHandlerstartElement in class DefaultHandlerSAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class DefaultHandlerSAXExceptionCopyright © 2023 Apache Software Foundation. All rights reserved.