Interface Zip


public interface Zip
ZIP file properties collection.
Since:
Apache Tika 4.0
  • Field Details

    • ZIP_PREFIX

      static final String ZIP_PREFIX
      See Also:
    • DETECTOR_ZIPFILE_OPENED

      static final Property DETECTOR_ZIPFILE_OPENED
      Set by the detector to indicate whether it successfully opened the ZIP as a ZipFile. If true, the ZipFile is available via TikaInputStream.getOpenContainer(). If false, ZipFile failed to open (truncated, corrupt, etc.) and parser should use streaming.
    • DETECTOR_DATA_DESCRIPTOR_REQUIRED

      static final Property DETECTOR_DATA_DESCRIPTOR_REQUIRED
      Set by the detector to indicate whether streaming required DATA_DESCRIPTOR support. If true, parser should start streaming with allowStoredEntriesWithDataDescriptor=true.
    • SALVAGED

      static final Property SALVAGED
      Set to true if the ZIP file was salvaged (rebuilt from a corrupt/truncated original). This indicates that the ZIP could not be opened directly and was repaired by streaming through the local headers and reconstructing a valid ZIP structure.
    • COMMENT

      static final Property COMMENT
      Comment associated with a ZIP entry.
    • COMPRESSION_METHOD

      static final Property COMPRESSION_METHOD
      Compression method used for the entry (0=stored, 8=deflated, etc.).
    • COMPRESSED_SIZE

      static final Property COMPRESSED_SIZE
      Compressed size of the entry in bytes.
    • UNCOMPRESSED_SIZE

      static final Property UNCOMPRESSED_SIZE
      Uncompressed size of the entry in bytes.
    • CRC32

      static final Property CRC32
      CRC-32 checksum of the uncompressed entry data.
    • UNIX_MODE

      static final Property UNIX_MODE
      Unix file mode/permissions for the entry.
    • PLATFORM

      static final Property PLATFORM
      Platform that created the entry (0=MS-DOS, 3=Unix, etc.).
    • VERSION_MADE_BY

      static final Property VERSION_MADE_BY
      Version of ZIP specification used to create the entry.
    • ENCRYPTED

      static final Property ENCRYPTED
      Whether the entry is encrypted.
    • INTEGRITY_CHECK_RESULT

      static final Property INTEGRITY_CHECK_RESULT
      Result of the integrity check comparing central directory to local headers. Values: "PASS" (no issues), "FAIL" (issues found), "PARTIAL" (only duplicate check done).
    • DUPLICATE_ENTRY_NAMES

      static final Property DUPLICATE_ENTRY_NAMES
      Entry names that appear multiple times in the local headers (streaming). Duplicate entries are a potential attack vector.
    • CENTRAL_DIRECTORY_ONLY_ENTRIES

      static final Property CENTRAL_DIRECTORY_ONLY_ENTRIES
      Entry names that exist in central directory but not in local headers.
    • LOCAL_HEADER_ONLY_ENTRIES

      static final Property LOCAL_HEADER_ONLY_ENTRIES
      Entry names that exist in local headers but not in central directory. These are "hidden" entries that some tools won't see.