Class RichTextContentHandler

  • All Implemented Interfaces:
    org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

    public class RichTextContentHandler
    extends WriteOutContentHandler
    Content handler for Rich Text, it will extract XHTML <img/> tag <alt/> attribute and XHTML <a/> tag <name/> attribute into the output.
    • Constructor Detail

      • RichTextContentHandler

        public RichTextContentHandler​(java.io.Writer writer)
        Creates a content handler that writes XHTML body character events to the given writer.
        Parameters:
        writer - writer
    • Method Detail

      • startElement

        public void startElement​(java.lang.String uri,
                                 java.lang.String localName,
                                 java.lang.String qName,
                                 org.xml.sax.Attributes attributes)
                          throws org.xml.sax.SAXException
        Specified by:
        startElement in interface org.xml.sax.ContentHandler
        Overrides:
        startElement in class ContentHandlerDecorator
        Throws:
        org.xml.sax.SAXException