Module com.github.librepdf.openpdf
Interface SimpleXMLDocHandler
- All Known Implementing Classes:
HTMLWorker,SimpleBookmark,SimpleNamedDestination,SimplePatternParser,XfdfReader
public interface SimpleXMLDocHandler
The handler for the events fired by
SimpleXMLParser.- Author:
- Paulo Soares ([email protected])
-
Method Summary
Modifier and TypeMethodDescriptionvoidCalled after the document is parsed.voidendElement(String tag) Called when an end tag is found.voidCalled when the document starts to be parsed.voidstartElement(String tag, Map<String, String> h) Called when a start tag is found.voidCalled when a text element is found.
-
Method Details
-
startElement
Called when a start tag is found.- Parameters:
tag- the tag nameh- the tag's attributes
-
endElement
Called when an end tag is found.- Parameters:
tag- the tag name
-
startDocument
void startDocument()Called when the document starts to be parsed. -
endDocument
void endDocument()Called after the document is parsed. -
text
Called when a text element is found.- Parameters:
str- the text element, probably a fragment.
-