Class SAXmyHandler

All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class SAXmyHandler extends SAXiTextHandler<XmlPeer>
The Tags-class maps several XHTML-tags to iText-objects.
  • Constructor Details

    • SAXmyHandler

      public SAXmyHandler(DocListener document, Map<String,XmlPeer> myTags)
      Constructs a new SAXiTextHandler that will translate all the events triggered by the parser to actions on the Document-object.
      Parameters:
      document - this is the document on which events must be triggered
      myTags - a user defined tagmap
  • Method Details

    • startElement

      public void startElement(String uri, String localName, String name, Attributes attrs)
      This method gets called when a start tag is encountered.
      Specified by:
      startElement in interface ContentHandler
      Overrides:
      startElement in class SAXiTextHandler<XmlPeer>
      Parameters:
      uri - the Uniform Resource Identifier
      localName - the local name (without prefix), or the empty string if Namespace processing is not being performed.
      name - the name of the tag that is encountered
      attrs - the list of attributes
    • endElement

      public void endElement(String uri, String lname, String name)
      This method gets called when an end tag is encountered.
      Specified by:
      endElement in interface ContentHandler
      Overrides:
      endElement in class SAXiTextHandler<XmlPeer>
      Parameters:
      uri - the Uniform Resource Identifier
      lname - the local name (without prefix), or the empty string if Namespace processing is not being performed.
      name - the name of the tag that ends