Package org.apache.tika.detect.zip
package org.apache.tika.detect.zip
-
ClassDescriptionThis class is designed to detect subtypes of zip-based file formats.A detector that works on Zip documents and tries to figure out basic types -- epub, jar, ear, war, kmz and StarOfficeDetects the zip-based GeoGebra formats by their well-known entry names:
geogebra.xmlat the root → a worksheet (*.ggb)structure.jsonat the root plus at least one_slide<N>/geogebra.xml→ GeoGebra Notes/Slides (*.ggs)geogebra_macro.xmlat the root → a tool (*.ggt) A worksheet with macros contains bothgeogebra.xmlandgeogebra_macro.xml, so the worksheet check takes precedence over the tool check, and the decision is only made once all entry names have been seen.This detector detects JAR files and file type variants of zip subtypes that may contain a MANIFEST.MFThis looks for a single file with a name ending in ".kml" at the root level of the zip file.A zip container detector that uses only streaming detection, never opening the file as a ZipFile.Classes that implement this must be able to detect on a ZipFile and in streaming mode.