Class OPCPackageDetector

java.lang.Object
org.apache.tika.detect.microsoft.ooxml.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:
  • Constructor Details

    • OPCPackageDetector

      public OPCPackageDetector()
  • Method Details

    • 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
    • parseOOXMLRels

      public static Set<String> parseOOXMLRels(InputStream is)
    • 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