Package org.apache.tika.parser.odf
Class NSNormalizerContentHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.tika.sax.ContentHandlerDecorator
org.apache.tika.parser.odf.NSNormalizerContentHandler
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
@Deprecated(since="2026-04-30")
public class NSNormalizerContentHandler
extends ContentHandlerDecorator
Deprecated.
This version of the Apache Tika library is deprecated. Use your own version of Apache Tika.
Content handler decorator that:
- Maps old OpenOffice 1.0 Namespaces to the OpenDocument ones
- Returns a fake DTD when parser requests OpenOffice DTD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidendElement(String namespaceURI, String localName, String qName) Deprecated.resolveEntity(String publicId, String systemId) Deprecated.do not load any DTDs (may be requested by parser).voidstartElement(String namespaceURI, String localName, String qName, Attributes atts) Deprecated.voidstartPrefixMapping(String prefix, String uri) Deprecated.Methods inherited from class org.apache.tika.sax.ContentHandlerDecorator
characters, endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, toStringMethods inherited from class org.xml.sax.helpers.DefaultHandler
error, fatalError, notationDecl, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
NSNormalizerContentHandler
Deprecated.
-
-
Method Details
-
startElement
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException Deprecated.- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classContentHandlerDecorator- Throws:
SAXException
-
endElement
Deprecated.- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classContentHandlerDecorator- Throws:
SAXException
-
startPrefixMapping
Deprecated.- Specified by:
startPrefixMappingin interfaceContentHandler- Overrides:
startPrefixMappingin classContentHandlerDecorator- Throws:
SAXException
-
resolveEntity
Deprecated.do not load any DTDs (may be requested by parser). Fake the DTD by returning a empty string as InputSource- Specified by:
resolveEntityin interfaceEntityResolver- Overrides:
resolveEntityin classDefaultHandler- Throws:
IOExceptionSAXException
-