Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionpackage-entry depth only bounds nesting when embedded content is inlined into its container's XHTML; use
EmbeddedLimits.setMaxDepth(int), which bounds nesting on every path. To be removed in 4.3.useEmbeddedLimits.getMaxDepth(). To be removed in 4.3.package-entry depth only bounds nesting when embedded content is inlined into its container's XHTML; useEmbeddedLimits.setMaxDepth(int), which bounds nesting on every path. To be removed in 4.3.since 4.2.0, removed in 4.3.0; useTikaDates.since 4.2.0, removed in 4.3.0; useMailUtil.useEmbeddedLimits.getMaxDepth(). To be removed in 4.3.useEmbeddedLimits.setMaxDepth(int). To be removed in 4.3.
-
Deprecated ClassesClassDescriptionafter 2.5.0 this functionality was moved to the CompositeDetectorCurrently not suitable for real use, more a demo / prototype!for removal in 4.xsince 4.2: the loader puts an entry's minimum in a
GatedEnricheras aRecordedSizeCheck. To be removed in 5.0.since 4.2.0, removed in 4.3.0; useTikaDates.since 4.2.0, removed in 4.3.0; useMailUtil.since 4.1.0; configure"pages"(seePagesConfig).Use theAttributeMetadataHandlerandElementMetadataHandlerclasses instead
-
Deprecated Enum ClassesEnum ClassDescription
-
Deprecated FieldsFieldDescriptionsince 4.2.0, removal planned for 5.0; Tika no longer sets an entity expansion limit. The JAXP provider's secure-processing limits apply.
-
Deprecated MethodsMethodDescriptionuse
EmbeddedLimits.getMaxDepth(). To be removed in 4.3.package-entry depth only bounds nesting when embedded content is inlined into its container's XHTML; useEmbeddedLimits.setMaxDepth(int), which bounds nesting on every path. To be removed in 4.3.This API is ICU internal only.This API is ICU internal only.UseMiscOLEDetector.detect(Set, DirectoryEntry)and pass the root entry of the filesystem whose type is to be detected, as a second argument.since 4.1, removal in 5.0: nothing produces the pseudo-types any more.since 4.1, removal planned for 5.0; useEmbeddedDocumentUtil.recordEmbeddedStreamException(Throwable, Metadata, ParseContext)so the configuredExceptionReportingapplies. Unlike in 4.0.0, this now keeps a bareTikaExceptionwrapper rather than stripping it, so the first line of the recorded value may name the wrapper.since 4.1, removal planned for 5.0; useEmbeddedDocumentUtil.recordException(Throwable, Metadata, ParseContext)so the configuredExceptionReportingapplies. Unlike in 4.0.0, this now keeps a bareTikaExceptionwrapper rather than stripping it, so the first line of the recorded value may name the wrapper.UseTika.detect(File)insteadUseTika.detect(String)insteadUseStructuralEncodingRules.detectIso2022(byte[])which distinguishes JP/KR/CN.useUtf16SpecialistEncodingDetector.score(byte[]). Kept for existing tests.use theParser.parse(TikaInputStream, ContentHandler, Metadata, ParseContext)method insteadsince 4.2.0, useExecutableParser.parsePE(XHTMLContentHandler, Metadata, TikaInputStream, byte[], ParseContext), which also extracts the icons as embedded documents. That is the oneExecutableParser.parse(org.apache.tika.io.TikaInputStream, org.xml.sax.ContentHandler, org.apache.tika.metadata.Metadata, org.apache.tika.parser.ParseContext)calls, so overriding this method no longer changes what a parse does.This method will be removed in Apache Tika 1.0.TheContentHandlerFactoryoverride is still experimental and the method signature is subject to change before Tika 2.0This has been replaced byFallbackParserno longer called by this parser: stream-backed input is loaded throughPDFParser.getPDDocument(RandomAccessRead, String, RandomAccessStreamCache.StreamCacheCreateFunction, Metadata, ParseContext), which does not copy the document into heap the wayRandomAccessReadBuffer(InputStream)doessince 4.1.0; usePDFParserConfig.setMarkedContent(MarkedContentConfig).trueisMarkedContentConfig.Strategy.TAGS,falseisMarkedContentConfig.Strategy.NONE.since 4.1.0;RAW_IMAGESisPDFParserConfig.setExtractInlineImages(boolean), theRENDER_PAGES_*values are"pages": {"emit": {"enabled": true}}andNONEisfalse. Renders are emitted at page end whichever value is given; when the engine renders is its own business.since 4.1.0; the 4.0"ocr"block. Every field it sets lands onPDFParserConfig.pages():strategyastext,strategyAutoasocr.auto,maxPagesToOcrasocr.maxPages, the image settings asrender,renderingStrategyasPDFParserConfig.setRenderingStrategy(org.apache.tika.parser.pdf.OcrConfig.RenderingStrategy).since 4.1, removal planned for 5.0; seeUnpackConfig.writesMetadata()since 4.1, removal planned for 5.0; seeUnpackConfig.writesMetadata()since 4.1, removal planned for 5.0; useUnpackConfig.setIncludeMetadata(Boolean)since 4.1, removal planned for 5.0; useUnpackConfig.setIncludeMetadata(Boolean)since 4.1, removal planned for 5.0; useFiles.createTempDirectory(prefix)since 4.1, removal planned for 5.0; seePipesConfig.setTempDirectory(String)since 4.1, removal planned for 5.0; set-Djava.io.tmpdirinsteadforked servers no longer read the config file; usePipesParser.load(TikaJsonConfig, PipesConfig).tikaConfigPathis ignored.since 4.1.0; seePOIMetafileRenderer.setWidth(int):pages.render.imageFormat.since 4.1.0: applies only to a directPOIMetafileRenderer.render(org.apache.tika.io.TikaInputStream, org.apache.tika.metadata.Metadata, org.apache.tika.parser.ParseContext, org.apache.tika.renderer.RenderRequest...)call with noRenderSettingsin the context. The EMF/WMF parsers always scopepages.render(300 dpi of the drawing's physical size, grayscale PNG, unless the block says otherwise), which replaces this. Configure"pages": {"render": {"maxWidth": ...}}.since 4.1.0: applies only to a directPDFBoxRenderer.render(org.apache.tika.io.TikaInputStream, org.apache.tika.metadata.Metadata, org.apache.tika.parser.ParseContext, org.apache.tika.renderer.RenderRequest...)call with noRenderSettingsin the context. A parse always scopespages.render, which replaces every value set here. Configure"pages": {"render": {...}}, or set aRenderSettingson the context when calling the renderer yourself.since 4.1.0; seePDFBoxRenderer.setDPI(int).since 4.1.0; seePDFBoxRenderer.setDPI(int).since 4.1.0; seePDFBoxRenderer.setDPI(int).since 4.1.0; seePDFBoxRenderer.setDPI(int).since 4.1.0: applies only to a directPopplerRenderer.render(org.apache.tika.io.TikaInputStream, org.apache.tika.metadata.Metadata, org.apache.tika.parser.ParseContext, org.apache.tika.renderer.RenderRequest...)call with noRenderSettingsin the context. A parse always scopespages.render, which replaces this. Configure"pages": {"render": {"dpi": ...}}.since 4.1.0; seePopplerRenderer.setDpi(int):pages.render.imageType.useEmbeddedLimits.getMaxDepth(). To be removed in 4.3.useEmbeddedLimits.setMaxDepth(int). To be removed in 4.3.since 4.2.0: aTlsConfigexists only when TLS is on.since 4.2.0: atlsConfigblock turns TLS on; remove the block to turn it off.removed in 4.2.0: tika-server never reads client certificates; useTlsConfig.setClientAuthenticationRequired(boolean).removed in 4.2.0: refused at startup; usejdk.tls.disabledAlgorithmsinjava.security.removed in 4.2.0: refused at startup; use thejdk.tls.server.protocolssystem property.removed in 4.2.0: refused at startup; use thejdk.tls.server.cipherSuitessystem property.removed in 4.2.0: refused at startup; use thejdk.tls.server.protocolssystem property.since 4.1, removal planned for 5.0; useExceptionUtils.format(Throwable, ParseContext)so the configured policy applies. Unlike this method, it keeps a bareTikaExceptionwrapper.since 4.1, removal planned for 5.0; useExceptionUtils.format(Throwable, ParseContext)so the configured policy appliessince 4.1, removal planned for 5.0; useParserUtils.recordParserFailure(Parser, Throwable, Metadata, ParseContext)so the configuredExceptionReportingappliessince 4.2.0, removal planned for 5.0since 4.2, removal planned for 5.0. Tika no longer parses with StAX; its security settings are best-effort and implementation-dependent. UseXMLReaderUtils.parseSAX(InputStream, ContentHandler, ParseContext).since 4.2, removal planned for 5.0; seeXMLReaderUtils.getXMLInputFactory(). UseXMLReaderUtils.parseSAX(InputStream, ContentHandler, ParseContext).since 4.2.0, removal planned for 5.0
-
Deprecated ConstructorsConstructorDescriptionpackage-entry depth only bounds nesting when embedded content is inlined into its container's XHTML; use
EmbeddedLimits.setMaxDepth(int), which bounds nesting on every path. To be removed in 4.3.Use the constructor which is passed all values directly.Use the constructor which is passed all values directly.since 4.1, use the overload taking anExceptionReporting