Class CompositeDigester

    • 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 to mark the stream before reading any bytes from it, and to reset the stream before returning. The stream must not be closed by the detector.

        Specified by:
        digest in interface DigestingParser.Digester
        Parameters:
        is - InputStream to digest
        m - Metadata to set the values for
        parseContext - ParseContext
        Throws:
        java.io.IOException