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