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:
ContentHandler
,DTDHandler
,EntityResolver
,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(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(String uri, String localName, String qName, 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
-
Methods inherited from class org.xml.sax.helpers.DefaultHandler
error, fatalError, notationDecl, resolveEntity, unparsedEntityDecl, warning
-
-
-
-
Constructor Detail
-
RichTextContentHandler
public RichTextContentHandler(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(String uri, String localName, String qName, Attributes attributes) throws SAXException
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classContentHandlerDecorator
- Throws:
SAXException
-
-