public class SAXmyHandler extends SAXiTextHandler
Tags
-class maps several XHTML-tags to iText-objects.controlOpenClose, currentChunk, document, chapters, ignore, myTags, stack
Constructor and Description |
---|
SAXmyHandler(DocListener document,
HashMap myTags)
Constructs a new SAXiTextHandler that will translate all the events
triggered by the parser to actions on the
Document -object. |
Modifier and Type | Method and Description |
---|---|
void |
endElement(String uri,
String lname,
String name)
This method gets called when an end tag is encountered.
|
void |
startElement(String uri,
String lname,
String name,
Attributes attrs)
This method gets called when a start tag is encountered.
|
addImage, handleEndingTags, handleStartingTags, characters, ignorableWhitespace, isDocumentRoot, setBaseFont, setControlOpenClose
endDocument, endPrefixMapping, error, fatalError, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public SAXmyHandler(DocListener document, HashMap myTags)
Document
-object.document
- this is the document on which events must be triggeredmyTags
- a user defined tagmappublic void startElement(String uri, String lname, String name, Attributes attrs)
startElement
in interface ContentHandler
startElement
in class SAXiTextHandler
uri
- the Uniform Resource Identifierlname
- the local name (without prefix), or the empty string if Namespace processing is not being performed.name
- the name of the tag that is encounteredattrs
- the list of attributespublic void endElement(String uri, String lname, String name)
endElement
in interface ContentHandler
endElement
in class SAXiTextHandler
uri
- the Uniform Resource Identifierlname
- the local name (without prefix), or the empty string if Namespace processing is not being performed.name
- the name of the tag that endsCopyright © 2015. All rights reserved.