public class AutoDetectParserConfig extends ConfigBase implements Serializable
See ModifyingContentWithHandlersAndMetadataFilters for documentation and examples for configuring this with a tika-config.xml file.
Modifier and Type | Field and Description |
---|---|
static AutoDetectParserConfig |
DEFAULT |
Constructor and Description |
---|
AutoDetectParserConfig() |
AutoDetectParserConfig(Long spoolToDisk,
Long outputThreshold,
Long maximumCompressionRatio,
Integer maximumDepth,
Integer maximumPackageEntryDepth)
Creates a SecureContentHandlerConfig using the passed in parameters.
|
buildComposite, buildComposite, buildSingle, buildSingle, configure, handleSettings
public static AutoDetectParserConfig DEFAULT
public AutoDetectParserConfig(Long spoolToDisk, Long outputThreshold, Long maximumCompressionRatio, Integer maximumDepth, Integer maximumPackageEntryDepth)
spoolToDisk
- outputThreshold
- SecureContentHandler - character output threshold.maximumCompressionRatio
- SecureContentHandler - max compression ratio allowed.maximumDepth
- SecureContentHandler - maximum XML element nesting level.maximumPackageEntryDepth
- SecureContentHandler - maximum package entry nesting level.public AutoDetectParserConfig()
public static AutoDetectParserConfig load(Element element) throws TikaConfigException, IOException
TikaConfigException
IOException
public Long getSpoolToDisk()
public void setSpoolToDisk(long spoolToDisk)
public Long getOutputThreshold()
public void setOutputThreshold(long outputThreshold)
public Long getMaximumCompressionRatio()
public void setMaximumCompressionRatio(long maximumCompressionRatio)
public Integer getMaximumDepth()
public void setMaximumDepth(int maximumDepth)
public Integer getMaximumPackageEntryDepth()
public void setMaximumPackageEntryDepth(int maximumPackageEntryDepth)
public MetadataWriteFilterFactory getMetadataWriteFilterFactory()
public void setMetadataWriteFilterFactory(MetadataWriteFilterFactory metadataWriteFilterFactory)
public void setEmbeddedDocumentExtractorFactory(EmbeddedDocumentExtractorFactory embeddedDocumentExtractorFactory)
public EmbeddedDocumentExtractorFactory getEmbeddedDocumentExtractorFactory()
public void setContentHandlerDecoratorFactory(ContentHandlerDecoratorFactory contentHandlerDecoratorFactory)
public ContentHandlerDecoratorFactory getContentHandlerDecoratorFactory()
public void setDigesterFactory(DigestingParser.DigesterFactory digesterFactory)
public DigestingParser.DigesterFactory getDigesterFactory()
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.