public class SAXmyHandler extends SAXiTextHandler
Tags
-class maps several XHTML-tags to iText-objects.Modifier and Type | Field and Description |
---|---|
protected java.util.HashMap |
myTags
This hashmap contains all the custom keys and peers.
|
bottomMargin, chapters, controlOpenClose, currentChunk, document, ignore, leftMargin, rightMargin, stack, topMargin
Constructor and Description |
---|
SAXmyHandler(DocListener document,
java.util.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(java.lang.String uri,
java.lang.String lname,
java.lang.String name)
This method gets called when an end tag is encountered.
|
void |
startElement(java.lang.String uri,
java.lang.String lname,
java.lang.String name,
org.xml.sax.Attributes attrs)
This method gets called when a start tag is encountered.
|
characters, handleEndingTags, handleStartingTags, ignorableWhitespace, isDocumentRoot, setBaseFont, setControlOpenClose
protected java.util.HashMap myTags
public SAXmyHandler(DocListener document, java.util.HashMap myTags) throws DocumentException, java.io.IOException
Document
-object.document
- this is the document on which events must be triggeredmyTags
- a userdefined tagmapjava.io.IOException
DocumentException
public void startElement(java.lang.String uri, java.lang.String lname, java.lang.String name, org.xml.sax.Attributes attrs)
startElement
in interface org.xml.sax.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(java.lang.String uri, java.lang.String lname, java.lang.String name)
endElement
in interface org.xml.sax.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 ends