public class AutoDetectParserConfig extends ConfigBase implements Serializable
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.
|
Modifier and Type | Method and Description |
---|---|
Long |
getMaximumCompressionRatio() |
Integer |
getMaximumDepth() |
Integer |
getMaximumPackageEntryDepth() |
Long |
getOutputThreshold() |
Long |
getSpoolToDisk() |
static AutoDetectParserConfig |
load(Element element) |
void |
setMaximumCompressionRatio(long maximumCompressionRatio) |
void |
setMaximumDepth(int maximumDepth) |
void |
setMaximumPackageEntryDepth(int maximumPackageEntryDepth) |
void |
setOutputThreshold(long outputThreshold) |
void |
setSpoolToDisk(long spoolToDisk) |
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)
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.