Package com.aowagie.text.xml
Class SAXmyHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.aowagie.text.xml.SAXiTextHandler
com.aowagie.text.xml.SAXmyHandler
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
The
Tags
-class maps several XHTML-tags to iText-objects.-
Field Summary
Fields inherited from class com.aowagie.text.xml.SAXiTextHandler
myTags
-
Constructor Summary
ConstructorsConstructorDescriptionSAXmyHandler
(DocListener document, HashMap myTags) Constructs a new SAXiTextHandler that will translate all the events triggered by the parser to actions on theDocument
-object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.Methods inherited from class com.aowagie.text.xml.SAXiTextHandler
characters, handleEndingTags, handleStartingTags, ignorableWhitespace, setBaseFont, 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
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
SAXmyHandler
Constructs a new SAXiTextHandler that will translate all the events triggered by the parser to actions on theDocument
-object.- Parameters:
document
- this is the document on which events must be triggeredmyTags
- a user defined tagmap
-
-
Method Details
-
startElement
This method gets called when a start tag is encountered.- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classSAXiTextHandler
- Parameters:
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 attributes
-
endElement
This method gets called when an end tag is encountered.- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classSAXiTextHandler
- Parameters:
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
-