Package org.apache.tika.sax
Class RichTextContentHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.apache.tika.sax.ContentHandlerDecorator
-
- org.apache.tika.sax.WriteOutContentHandler
-
- org.apache.tika.sax.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 Summary
Constructors Constructor Description RichTextContentHandler(java.io.Writer writer)
Creates a content handler that writes XHTML body character events to the given writer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
-
Methods inherited from class org.apache.tika.sax.WriteOutContentHandler
characters, ignorableWhitespace, isWriteLimitReached
-
Methods inherited from class org.apache.tika.sax.ContentHandlerDecorator
endDocument, endElement, endPrefixMapping, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, toString
-
-
-
-
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 interfaceorg.xml.sax.ContentHandler
- Overrides:
startElement
in classContentHandlerDecorator
- Throws:
org.xml.sax.SAXException
-
-