Package org.apache.tika.parser.digest
Class CompositeDigester
- java.lang.Object
-
- org.apache.tika.parser.digest.CompositeDigester
-
- All Implemented Interfaces:
DigestingParser.Digester
- Direct Known Subclasses:
BouncyCastleDigester
,CommonsDigester
public class CompositeDigester extends java.lang.Object implements DigestingParser.Digester
-
-
Constructor Summary
Constructors Constructor Description CompositeDigester(DigestingParser.Digester... digesters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
digest(java.io.InputStream is, Metadata m, ParseContext parseContext)
Digests an InputStream and sets the appropriate value(s) in the metadata.
-
-
-
Constructor Detail
-
CompositeDigester
public CompositeDigester(DigestingParser.Digester... digesters)
-
-
Method Detail
-
digest
public void digest(java.io.InputStream is, Metadata m, ParseContext parseContext) throws java.io.IOException
Description copied from interface:DigestingParser.Digester
Digests an InputStream and sets the appropriate value(s) in the metadata. The Digester is also responsible for marking and resetting the stream.The given stream is guaranteed to support the
mark feature
and the detector is expected tomark
the stream before reading any bytes from it, and toreset
the stream before returning. The stream must not be closed by the detector.- Specified by:
digest
in interfaceDigestingParser.Digester
- Parameters:
is
- InputStream to digestm
- Metadata to set the values forparseContext
- ParseContext- Throws:
java.io.IOException
-
-