public class OPCPackageDetector extends Object implements ZipContainerDetector
| Constructor and Description |
|---|
OPCPackageDetector() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.tika.mime.MediaType |
detect(org.apache.commons.compress.archivers.zip.ZipFile zipFile,
org.apache.tika.io.TikaInputStream stream) |
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
|
static Set<String> |
parseOOXMLRels(InputStream is) |
org.apache.tika.mime.MediaType |
streamingDetectFinal(StreamingDetectContext detectContext) |
org.apache.tika.mime.MediaType |
streamingDetectUpdate(org.apache.commons.compress.archivers.zip.ZipArchiveEntry zae,
InputStream zis,
StreamingDetectContext detectContext) |
public static org.apache.tika.mime.MediaType detectOfficeOpenXML(org.apache.poi.openxml4j.opc.OPCPackage pkg)
public static Set<String> parseOOXMLRels(InputStream is)
public org.apache.tika.mime.MediaType detect(org.apache.commons.compress.archivers.zip.ZipFile zipFile,
org.apache.tika.io.TikaInputStream stream)
throws IOException
detect in interface ZipContainerDetectorIOExceptionpublic org.apache.tika.mime.MediaType streamingDetectUpdate(org.apache.commons.compress.archivers.zip.ZipArchiveEntry zae,
InputStream zis,
StreamingDetectContext detectContext)
streamingDetectUpdate in interface ZipContainerDetectorpublic org.apache.tika.mime.MediaType streamingDetectFinal(StreamingDetectContext detectContext)
streamingDetectFinal in interface ZipContainerDetectorCopyright © 2007–2024 The Apache Software Foundation. All rights reserved.