Package org.apache.tika.digest
Interface Digester
- All Known Implementing Classes:
BouncyCastleDigester,CommonsDigester,CompositeDigester,InputStreamDigester
public interface Digester
Interface for digester implementations.
See
InputStreamDigester for an implementation
in tika-core, or CommonsDigester in tika-parser-digest-commons.-
Method Summary
Modifier and TypeMethodDescriptionvoiddigest(TikaInputStream tis, Metadata m, ParseContext parseContext) Digests a TikaInputStream and sets the appropriate value(s) in the metadata.
-
Method Details
-
digest
Digests a TikaInputStream and sets the appropriate value(s) in the metadata. The Digester is responsible for callingTikaInputStream.enableRewind()andTikaInputStream.rewind()to ensure the stream can be read by subsequent processing after digesting.The stream must not be closed by the digester.
- Parameters:
tis- TikaInputStream to digestm- Metadata to set the values forparseContext- ParseContext- Throws:
IOException- on I/O error
-