Class OpenDocumentDetector

java.lang.Object
org.apache.tika.detect.zip.OpenDocumentDetector
All Implemented Interfaces:
Serializable, ZipContainerDetector

public class OpenDocumentDetector extends Object implements ZipContainerDetector
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    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() Implementations should _not_ close the ZipFile
    org.apache.tika.mime.MediaType
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OpenDocumentDetector

      public OpenDocumentDetector()
  • Method Details