|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
com.lowagie.text.xml.SAXiTextHandler
com.lowagie.text.xml.SAXmyHandler
The Tags
-class maps several XHTML-tags to iText-objects.
Field Summary | |
protected HashMap |
myTags
This hashmap contains all the custom keys and peers. |
Fields inherited from class com.lowagie.text.xml.SAXiTextHandler |
chapters, controlOpenClose, currentChunk, document, ignore, stack |
Constructor Summary | |
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. |
Method Summary | |
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,
org.xml.sax.Attributes attrs)
This method gets called when a start tag is encountered. |
Methods inherited from class com.lowagie.text.xml.SAXiTextHandler |
characters, handleEndingTags, handleStartingTags, ignorableWhitespace, isDocumentRoot, setControlOpenClose |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, error, fatalError, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected HashMap myTags
Constructor Detail |
public SAXmyHandler(DocListener document, HashMap myTags)
Document
-object.
document
- this is the document on which events must be triggeredMethod Detail |
public void startElement(String uri, String lname, String name, org.xml.sax.Attributes attrs)
startElement
in interface org.xml.sax.ContentHandler
startElement
in class SAXiTextHandler
name
- the name of the tag that is encounteredattrs
- the list of attributespublic void endElement(String uri, String lname, String name)
endElement
in interface org.xml.sax.ContentHandler
endElement
in class SAXiTextHandler
name
- the name of the tag that ends
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |