public abstract class AbstractIdentifier extends Object implements Identifier
| Constructor and Description |
|---|
AbstractIdentifier() |
AbstractIdentifier(String algorithm,
Charset charset) |
| Modifier and Type | Method and Description |
|---|---|
String |
hash(TikaDocument tikaDocument)
Generate or retrieve (from metadata) a hash digest of the tikaDocument's underlying file data.
|
String |
retrieveHash(org.apache.tika.metadata.Metadata metadata)
Retrieve a hash digest of the document's underlying file data.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgenerate, generateForEmbedpublic String hash(TikaDocument tikaDocument)
IdentifierIdentifier.generate(TikaDocument) methods of the implementation generate hash digests, those are
semantically different as they represent a hash of the tikaDocument, rather than the file. The former might
comprise the the relationship of the tikaDocument with its parent, or its position in the path hierarchy, whereas
the latter must not.hash in interface IdentifiertikaDocument - the tikaDocument for which to return a file hash digestpublic String retrieveHash(org.apache.tika.metadata.Metadata metadata)
IdentifierretrieveHash in interface Identifiermetadata - the document's metadataCopyright © 2018. All rights reserved.