public class DefaultZipContainerDetector extends Object implements org.apache.tika.detect.Detector
| Constructor and Description |
|---|
DefaultZipContainerDetector() |
DefaultZipContainerDetector(List<ZipContainerDetector> zipDetectors) |
DefaultZipContainerDetector(org.apache.tika.config.ServiceLoader loader) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.tika.mime.MediaType |
detect(InputStream input,
org.apache.tika.metadata.Metadata metadata) |
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 DefaultZipContainerDetector()
public DefaultZipContainerDetector(org.apache.tika.config.ServiceLoader loader)
public DefaultZipContainerDetector(List<ZipContainerDetector> zipDetectors)
@Field public void setMarkLimit(int markLimit)
DeprecatedStreamingZipContainerDetector
will be called only up to the markLimit.markLimit - mark limit for streaming detectionpublic org.apache.tika.mime.MediaType detect(InputStream input, org.apache.tika.metadata.Metadata metadata) throws IOException
detect in interface org.apache.tika.detect.DetectorIOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.