Class OPCPackageDetector
- java.lang.Object
-
- org.apache.tika.detect.microsoft.ooxml.OPCPackageDetector
-
- All Implemented Interfaces:
Serializable,ZipContainerDetector
public class OPCPackageDetector extends Object implements ZipContainerDetector
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OPCPackageDetector()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.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 Packagestatic Set<String>parseOOXMLRels(InputStream is)org.apache.tika.mime.MediaTypestreamingDetectFinal(StreamingDetectContext detectContext)org.apache.tika.mime.MediaTypestreamingDetectUpdate(org.apache.commons.compress.archivers.zip.ZipArchiveEntry zae, InputStream zis, StreamingDetectContext detectContext)
-
-
-
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
-
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:
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
public org.apache.tika.mime.MediaType streamingDetectFinal(StreamingDetectContext detectContext)
- Specified by:
streamingDetectFinalin interfaceZipContainerDetector
-
-