Class OPCPackageDetector

  • All Implemented Interfaces:
    Serializable, org.apache.tika.detect.zip.ZipContainerDetector

    public class OPCPackageDetector
    extends Object
    implements org.apache.tika.detect.zip.ZipContainerDetector
    See Also:
    Serialized Form
    • Constructor Detail

      • OPCPackageDetector

        public OPCPackageDetector()
    • Method Detail

      • detectOfficeOpenXML

        public static org.apache.tika.mime.MediaType detectOfficeOpenXML​(org.apache.poi.openxml4j.opc.OPCPackage pkg)
        Detects the type of an OfficeOpenXML (OOXML) file from opened Package
      • detect

        public org.apache.tika.mime.MediaType detect​(org.apache.commons.compress.archivers.zip.ZipFile zipFile,
                                                     org.apache.tika.io.TikaInputStream stream)
                                              throws IOException
        Specified by:
        detect in interface org.apache.tika.detect.zip.ZipContainerDetector
        Throws:
        IOException
      • streamingDetectUpdate

        public org.apache.tika.mime.MediaType streamingDetectUpdate​(org.apache.commons.compress.archivers.zip.ZipArchiveEntry zae,
                                                                    InputStream zis,
                                                                    org.apache.tika.detect.zip.StreamingDetectContext detectContext)
        Specified by:
        streamingDetectUpdate in interface org.apache.tika.detect.zip.ZipContainerDetector
      • streamingDetectFinal

        public org.apache.tika.mime.MediaType streamingDetectFinal​(org.apache.tika.detect.zip.StreamingDetectContext detectContext)
        Specified by:
        streamingDetectFinal in interface org.apache.tika.detect.zip.ZipContainerDetector