Package org.apache.tika.detect.zip
Class IPADetector
- java.lang.Object
- 
- org.apache.tika.detect.zip.IPADetector
 
- 
- All Implemented Interfaces:
- Serializable,- ZipContainerDetector
 
 public class IPADetector extends Object implements ZipContainerDetector - See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description IPADetector()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description MediaTypedetect(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 ZipFileMediaTypestreamingDetectFinal(StreamingDetectContext detectContext)After we've finished streaming the zip archive entries, a detector may make a final decision.MediaTypestreamingDetectUpdate(org.apache.commons.compress.archivers.zip.ZipArchiveEntry zae, InputStream zis, StreamingDetectContext detectContext)Try to detect on a specific entry.
 
- 
- 
- 
Method Detail- 
detectpublic MediaType detect(org.apache.commons.compress.archivers.zip.ZipFile zip, TikaInputStream tis) throws IOException Description copied from interface:ZipContainerDetectorIf detection is successful, the ZipDetector should set the zip file or OPCPackage in TikaInputStream.setOpenContainer() Implementations should _not_ close the ZipFile- Specified by:
- detectin interface- ZipContainerDetector
- Returns:
- Throws:
- IOException
 
 - 
streamingDetectUpdatepublic MediaType streamingDetectUpdate(org.apache.commons.compress.archivers.zip.ZipArchiveEntry zae, InputStream zis, StreamingDetectContext detectContext) Description copied from interface:ZipContainerDetectorTry to detect on a specific entry. Detectors are allowed to store state (e.g. "remember what they've seen") in theStreamingDetectContext- Specified by:
- streamingDetectUpdatein interface- ZipContainerDetector
- Returns:
 
 - 
streamingDetectFinalpublic MediaType streamingDetectFinal(StreamingDetectContext detectContext) Description copied from interface:ZipContainerDetectorAfter we've finished streaming the zip archive entries, a detector may make a final decision.- Specified by:
- streamingDetectFinalin interface- ZipContainerDetector
- Returns:
 
 
- 
 
-