public class OpenDocumentDetector extends Object implements ZipContainerDetector
Constructor and Description |
---|
OpenDocumentDetector() |
Modifier and Type | Method and Description |
---|---|
MediaType |
detect(org.apache.commons.compress.archivers.zip.ZipFile zip,
TikaInputStream tis)
If detection is successful, the ZipDetector should set the zip
file or OPCPackage in TikaInputStream.setOpenContainer()
Implementations should _not_ close the ZipFile
|
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.
|
public MediaType detect(org.apache.commons.compress.archivers.zip.ZipFile zip, TikaInputStream tis) throws IOException
ZipContainerDetector
detect
in interface ZipContainerDetector
IOException
public MediaType streamingDetectUpdate(org.apache.commons.compress.archivers.zip.ZipArchiveEntry zae, InputStream zis, StreamingDetectContext detectContext) throws IOException
ZipContainerDetector
StreamingDetectContext
streamingDetectUpdate
in interface ZipContainerDetector
IOException
public MediaType streamingDetectFinal(StreamingDetectContext detectContext)
ZipContainerDetector
streamingDetectFinal
in interface ZipContainerDetector
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.