public class ZipContainerDetector extends Object implements org.apache.tika.detect.Detector
| Constructor and Description |
|---|
ZipContainerDetector() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.tika.mime.MediaType |
detect(InputStream input,
org.apache.tika.metadata.Metadata metadata) |
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 org.apache.tika.mime.MediaType |
detectXPSOPC(org.apache.poi.openxml4j.opc.OPCPackage pkg)
Detects Open XML Paper Specification (XPS)
|
public org.apache.tika.mime.MediaType detect(InputStream input, org.apache.tika.metadata.Metadata metadata) throws IOException
detect in interface org.apache.tika.detect.DetectorIOExceptionpublic static org.apache.tika.mime.MediaType detectOfficeOpenXML(org.apache.poi.openxml4j.opc.OPCPackage pkg)
public static org.apache.tika.mime.MediaType detectXPSOPC(org.apache.poi.openxml4j.opc.OPCPackage pkg)
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.