Class OPCPackageDetector
java.lang.Object
org.apache.tika.detect.microsoft.ooxml.OPCPackageDetector
- All Implemented Interfaces:
Serializable,ZipContainerDetector
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.tika.mime.MediaTypedetect(org.apache.commons.compress.archivers.zip.ZipFile zipFile, org.apache.tika.io.TikaInputStream stream) static org.apache.tika.mime.MediaTypedetectOfficeOpenXML(org.apache.poi.openxml4j.opc.OPCPackage pkg) Detects the type of an OfficeOpenXML (OOXML) file from opened Packageorg.apache.tika.mime.MediaTypestreamingDetectFinal(StreamingDetectContext detectContext) org.apache.tika.mime.MediaTypestreamingDetectUpdate(org.apache.commons.compress.archivers.zip.ZipArchiveEntry zae, InputStream zis, StreamingDetectContext detectContext)
-
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
-
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:
detectin interfaceZipContainerDetector- Throws:
IOException
-
streamingDetectUpdate
public org.apache.tika.mime.MediaType streamingDetectUpdate(org.apache.commons.compress.archivers.zip.ZipArchiveEntry zae, InputStream zis, StreamingDetectContext detectContext) - Specified by:
streamingDetectUpdatein interfaceZipContainerDetector
-
streamingDetectFinal
- Specified by:
streamingDetectFinalin interfaceZipContainerDetector
-