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:
org.xml.sax.ContentHandler
,org.xml.sax.DTDHandler
,org.xml.sax.EntityResolver
,org.xml.sax.ErrorHandler
class SAXmyHandler extends SAXiTextHandler
TheTags
-class maps several XHTML-tags to iText-objects.
-
-
Field Summary
-
Fields inherited from class com.aowagie.text.xml.SAXiTextHandler
myTags
-
-
Constructor Summary
Constructors Constructor 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 theDocument
-object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.aowagie.text.xml.SAXiTextHandler
characters, handleEndingTags, handleStartingTags, ignorableWhitespace, setBaseFont, setControlOpenClose
-
-
-
-
Constructor Detail
-
SAXmyHandler
public SAXmyHandler(DocListener document, java.util.HashMap myTags)
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 Detail
-
startElement
public 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.- Specified by:
startElement
in interfaceorg.xml.sax.ContentHandler
- 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
public void endElement(java.lang.String uri, java.lang.String lname, java.lang.String name)
This method gets called when an end tag is encountered.- Specified by:
endElement
in interfaceorg.xml.sax.ContentHandler
- 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
-
-