Package org.apache.tika.sax
Class EndDocumentShieldingContentHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.tika.sax.ContentHandlerDecorator
org.apache.tika.sax.EndDocumentShieldingContentHandler
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
@Deprecated(since="2026-04-30")
public class EndDocumentShieldingContentHandler
extends ContentHandlerDecorator
Deprecated.
This version of the Apache Tika library is deprecated. Use your own version of Apache Tika.
A wrapper around a
ContentHandler which will ignore normal
SAX calls to endDocument(), and only fire them later.
This is typically used to ensure that we can output the metadata
before ending the document-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a decorator for the given SAX event handler. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.booleanDeprecated.voidDeprecated.Methods inherited from class org.apache.tika.sax.ContentHandlerDecorator
characters, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, toStringMethods inherited from class org.xml.sax.helpers.DefaultHandler
error, fatalError, notationDecl, resolveEntity, 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
-
EndDocumentShieldingContentHandler
Deprecated.Creates a decorator for the given SAX event handler.- Parameters:
handler- SAX event handler to be decorated
-
-
Method Details
-
endDocument
Deprecated.- Specified by:
endDocumentin interfaceContentHandler- Overrides:
endDocumentin classContentHandlerDecorator- Throws:
SAXException
-
reallyEndDocument
Deprecated.- Throws:
SAXException
-
getEndDocumentWasCalled
public boolean getEndDocumentWasCalled()Deprecated.
-