org.apache.tika.parser.pkg
Class ZipContainerDetector
java.lang.Object
org.apache.tika.parser.pkg.ZipContainerDetector
- All Implemented Interfaces:
- Serializable, org.apache.tika.detect.Detector
public class ZipContainerDetector
- extends Object
- implements org.apache.tika.detect.Detector
A detector that works on Zip documents and other archive and compression
formats to figure out exactly what the file is.
- See Also:
- Serialized Form
|
Method Summary |
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZipContainerDetector
public ZipContainerDetector()
detect
public org.apache.tika.mime.MediaType detect(InputStream input,
org.apache.tika.metadata.Metadata metadata)
throws IOException
- Specified by:
detect in interface org.apache.tika.detect.Detector
- Throws:
IOException
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
Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.