Package org.apache.tika.metadata
Interface Zip
public interface Zip
ZIP file properties collection.
- Since:
- Apache Tika 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PropertyEntry names that exist in central directory but not in local headers.static final PropertyComment associated with a ZIP entry.static final PropertyCompressed size of the entry in bytes.static final PropertyCompression method used for the entry (0=stored, 8=deflated, etc.).static final PropertyCRC-32 checksum of the uncompressed entry data.static final PropertySet by the detector to indicate whether streaming required DATA_DESCRIPTOR support.static final PropertySet by the detector to indicate whether it successfully opened the ZIP as a ZipFile.static final PropertyEntry names that appear multiple times in the local headers (streaming).static final PropertyWhether the entry is encrypted.static final PropertyResult of the integrity check comparing central directory to local headers.static final PropertyEntry names that exist in local headers but not in central directory.static final PropertyPlatform that created the entry (0=MS-DOS, 3=Unix, etc.).static final PropertySet to true if the ZIP file was salvaged (rebuilt from a corrupt/truncated original).static final PropertyUncompressed size of the entry in bytes.static final PropertyUnix file mode/permissions for the entry.static final PropertyVersion of ZIP specification used to create the entry.static final String
-
Field Details
-
ZIP_PREFIX
- See Also:
-
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
Set by the detector to indicate whether streaming required DATA_DESCRIPTOR support. If true, parser should start streaming with allowStoredEntriesWithDataDescriptor=true. -
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
Comment associated with a ZIP entry. -
COMPRESSION_METHOD
Compression method used for the entry (0=stored, 8=deflated, etc.). -
COMPRESSED_SIZE
Compressed size of the entry in bytes. -
UNCOMPRESSED_SIZE
Uncompressed size of the entry in bytes. -
CRC32
CRC-32 checksum of the uncompressed entry data. -
UNIX_MODE
Unix file mode/permissions for the entry. -
PLATFORM
Platform that created the entry (0=MS-DOS, 3=Unix, etc.). -
VERSION_MADE_BY
Version of ZIP specification used to create the entry. -
ENCRYPTED
Whether the entry is encrypted. -
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
Entry names that appear multiple times in the local headers (streaming). Duplicate entries are a potential attack vector. -
CENTRAL_DIRECTORY_ONLY_ENTRIES
Entry names that exist in central directory but not in local headers. -
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.
-