@Override
    public String toString() {
        return "AutoDetectParserConfig{" + "spoolToDisk=" + spoolToDisk + ", outputThreshold=" +
                outputThreshold + ", maximumCompressionRatio=" + maximumCompressionRatio +
                ", maximumDepth=" + maximumDepth + ", maximumPackageEntryDepth=" +
                maximumPackageEntryDepth + ", metadataWriteFilterFactory=" +
                metadataWriteFilterFactory + ", embeddedDocumentExtractorFactory=" +
                embeddedDocumentExtractorFactory + ", contentHandlerDecoratorFactory=" +
                contentHandlerDecoratorFactory + ", digesterFactory=" + digesterFactory +
                ", throwOnZeroBytes=" + throwOnZeroBytes + '}';
    }
Creates a SecureContentHandlerConfig using the passed in parameters.

@param spoolToDisk
@param outputThreshold          SecureContentHandler - character output threshold.
@param maximumCompressionRatio  SecureContentHandler - max compression ratio allowed.
@param maximumDepth             SecureContentHandler - maximum XML element nesting level.
@param maximumPackageEntryDepth SecureContentHandler - maximum package entry nesting level.
tika-core/src/main/java/org/apache/tika/parser/AutoDetectParserConfig.java