Class CommonsDigesterFactory
java.lang.Object
org.apache.tika.parser.digestutils.CommonsDigesterFactory
- All Implemented Interfaces:
org.apache.tika.digest.DigesterFactory
public class CommonsDigesterFactory
extends Object
implements org.apache.tika.digest.DigesterFactory
Factory for
CommonsDigester with configurable algorithms and encodings.
Default: MD5 with HEX encoding.
Example JSON configuration (in parse-context section):
{
"parse-context": {
"digester-factory": {
"commons-digester-factory": {
"digests": [
{ "algorithm": "MD5" },
{ "algorithm": "SHA256", "encoding": "BASE32" }
],
"skipContainerDocumentDigest": false
}
}
}
}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.tika.digest.Digesterbuild()List<org.apache.tika.digest.DigestDef>booleanvoidsetDigests(List<org.apache.tika.digest.DigestDef> digests) voidsetSkipContainerDocumentDigest(boolean skipContainerDocumentDigest)
-
Constructor Details
-
CommonsDigesterFactory
public CommonsDigesterFactory()
-
-
Method Details
-
build
public org.apache.tika.digest.Digester build()- Specified by:
buildin interfaceorg.apache.tika.digest.DigesterFactory
-
isSkipContainerDocumentDigest
public boolean isSkipContainerDocumentDigest()- Specified by:
isSkipContainerDocumentDigestin interfaceorg.apache.tika.digest.DigesterFactory
-
setSkipContainerDocumentDigest
public void setSkipContainerDocumentDigest(boolean skipContainerDocumentDigest) -
getDigests
-
setDigests
-