public interface ZipContainerDetector extends Serializable
streamingDetectFinal(StreamingDetectContext) is
called for a final decision.
During streaming detection, state is stored in the StreamingDetectContext
| 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 tis)
If detection is successful, the ZipDetector should set the zip
file or OPCPackage in TikaInputStream.setOpenContainer()
|
org.apache.tika.mime.MediaType |
streamingDetectFinal(StreamingDetectContext detectContext)
After we've finished streaming the zip archive entries,
a detector may make a final decision.
|
org.apache.tika.mime.MediaType |
streamingDetectUpdate(org.apache.commons.compress.archivers.zip.ZipArchiveEntry zae,
InputStream zis,
StreamingDetectContext detectContext)
Try to detect on a specific entry.
|
org.apache.tika.mime.MediaType detect(org.apache.commons.compress.archivers.zip.ZipFile zipFile,
org.apache.tika.io.TikaInputStream tis)
throws IOException
zipFile - tis - IOExceptionorg.apache.tika.mime.MediaType streamingDetectUpdate(org.apache.commons.compress.archivers.zip.ZipArchiveEntry zae,
InputStream zis,
StreamingDetectContext detectContext)
throws IOException
StreamingDetectContextzae - IOExceptionorg.apache.tika.mime.MediaType streamingDetectFinal(StreamingDetectContext detectContext)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.