public class OpenDocumentDetector extends Object implements ZipContainerDetector
| Constructor and Description |
|---|
OpenDocumentDetector() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.tika.mime.MediaType |
detect(org.apache.commons.compress.archivers.zip.ZipFile zip,
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.
|
public org.apache.tika.mime.MediaType detect(org.apache.commons.compress.archivers.zip.ZipFile zip,
org.apache.tika.io.TikaInputStream tis)
throws IOException
ZipContainerDetectordetect in interface ZipContainerDetectorIOExceptionpublic org.apache.tika.mime.MediaType streamingDetectUpdate(org.apache.commons.compress.archivers.zip.ZipArchiveEntry zae,
InputStream zis,
StreamingDetectContext detectContext)
throws IOException
ZipContainerDetectorStreamingDetectContextstreamingDetectUpdate in interface ZipContainerDetectorIOExceptionpublic org.apache.tika.mime.MediaType streamingDetectFinal(StreamingDetectContext detectContext)
ZipContainerDetectorstreamingDetectFinal in interface ZipContainerDetectorCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.