Interface ZipContainerDetector

    • Method Detail

      • detect

        MediaType detect​(org.apache.commons.compress.archivers.zip.ZipFile zipFile,
                         TikaInputStream tis)
                  throws IOException
        If detection is successful, the ZipDetector should set the zip file or OPCPackage in TikaInputStream.setOpenContainer() Implementations should _not_ close the ZipFile
        Parameters:
        zipFile -
        tis -
        Returns:
        Throws:
        IOException
      • streamingDetectFinal

        MediaType streamingDetectFinal​(StreamingDetectContext detectContext)
        After we've finished streaming the zip archive entries, a detector may make a final decision.
        Returns: