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
|
void |
setMarkLimit(int markLimit)
If this is less than 0, the file will be spooled to disk,
and detection will run on the full file.
|
public org.apache.tika.mime.MediaType detect(InputStream input, org.apache.tika.metadata.Metadata metadata) throws IOException
detect in interface org.apache.tika.detect.DetectorIOException@Field public void setMarkLimit(int markLimit)
StreamingZipContainerDetector
will be called only up to the markLimit.markLimit - mark limit for streaming detectionpublic static org.apache.tika.mime.MediaType detectOfficeOpenXML(org.apache.poi.openxml4j.opc.OPCPackage pkg)
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.