Maven module :un.storage : archive-zip :
Class : un.storage.archive.zip.ZipMetaModel
Extends/Implements : -
Subclasses : -

Documentation from spécification :
http://www.pkware.com/documents/casestudies/APPNOTE.TXT
author  Johann Sorel


Variables : SIGNATURE_LOCAL_FILE, SIGNATURE_EXTRA_RECORD, SIGNATURE_CENTRAL_DIRECTORY, SIGNATURE_DIGITAL_SIGNATURE, SIGNATURE_ZIP64_END_CENTRAL_DIRECTORY_RECORD, SIGNATURE_ZIP64_END_CENTRAL_DIRECTORY_LOCATOR, SIGNATURE_END_CENTRAL_DIRECTORY, MSDOS, AMIGA, OPENVMS, UNIX, VM_CMS, ATARI_ST, OS2, MACINTOSH, ZSYSTEM, CP_M, WINDOWS_NTFS, MVS, VSE, ACORN_RISC, VFAT, ALTERNATE_MVS, BEOS, TANDEM, OS_400, OS_X, UNUSED, FLAG_ENCRYPTED, FLAG_COMPRESSION_PARAM0, FLAG_COMPRESSION_PARAM1, FLAG_CRC32, FLAG_COMPRESSED_PATCHED, FLAG_ENCRYPTION, FLAG_EFS, FLAG_HIDE, COMPRESSION_NONE, COMPRESSION_SHRUNK, COMPRESSION_REDUCED_1, COMPRESSION_REDUCED_2, COMPRESSION_REDUCED_3, COMPRESSION_REDUCED_4, COMPRESSION_IMPLODED, COMPRESSION_DEFLATE, COMPRESSION_DEFLATE64, COMPRESSION_OLDIMPLODING, COMPRESSION_BZIP2, COMPRESSION_LZMA, COMPRESSION_IBM_TERSE, COMPRESSION_LZ777, COMPRESSION_WAVPACK, COMPRESSION_PPMd
Functions : -


public int SIGNATURE_LOCAL_FILE

public int SIGNATURE_EXTRA_RECORD

public int SIGNATURE_CENTRAL_DIRECTORY

public int SIGNATURE_DIGITAL_SIGNATURE

public int SIGNATURE_ZIP64_END_CENTRAL_DIRECTORY_RECORD

public int SIGNATURE_ZIP64_END_CENTRAL_DIRECTORY_LOCATOR

public int SIGNATURE_END_CENTRAL_DIRECTORY

public int MSDOS



public int AMIGA



public int OPENVMS



public int UNIX



public int VM_CMS



public int ATARI_ST



public int OS2



public int MACINTOSH



public int ZSYSTEM



public int CP_M



public int WINDOWS_NTFS



public int MVS



public int VSE



public int ACORN_RISC



public int VFAT



public int ALTERNATE_MVS



public int BEOS



public int TANDEM



public int OS_400



public int OS_X



public int UNUSED


Bit 0: If set, indicates that the file is encrypted.
public int FLAG_ENCRYPTED


(For Method 6 - Imploding)
Bit 1: If the compression method used was type 6,
Imploding, then this bit, if set, indicates
an 8K sliding dictionary was used. If clear,
then a 4K sliding dictionary was used.
Bit 2: If the compression method used was type 6,
Imploding, then this bit, if set, indicates
3 Shannon-Fano trees were used to encode the
sliding dictionary output. If clear, then 2
Shannon-Fano trees were used.

(For Methods 8 and 9 - Deflating)
Bit 2 Bit 1
0 0 Normal (-en) compression option was used.
0 1 Maximum (-exx/-ex) compression option was used.
1 0 Fast (-ef) compression option was used.
1 1 Super Fast (-es) compression option was used.

(For Method 14 - LZMA)
Bit 1: If the compression method used was type 14,
LZMA, then this bit, if set, indicates
an end-of-stream (EOS) marker is used to
mark the end of the compressed data stream.
If clear, then an EOS marker is not present
and the compressed data size must be known
to extract.

Note: Bits 1 and 2 are undefined if the compression
method is any other.
public int FLAG_COMPRESSION_PARAM0

public int FLAG_COMPRESSION_PARAM1


Bit 3: If this bit is set, the fields crc-32, compressed
size and uncompressed size are set to zero in the
local header. The correct values are put in the
data descriptor immediately following the compressed
data. (Note: PKZIP version 2.04g for DOS only
recognizes this bit for method 8 compression, newer
versions of PKZIP recognize this bit for any
compression method.)
public int FLAG_CRC32


Bit 5: If this bit is set, this indicates that the file is
compressed patched data. (Note: Requires PKZIP
version 2.70 or greater)
public int FLAG_COMPRESSED_PATCHED


Bit 6: Strong encryption. If this bit is set, you MUST
set the version needed to extract value to at least
50 and you MUST also set bit 0. If AES encryption
is used, the version needed to extract value MUST
be at least 51. See the section describing the Strong
Encryption Specification for details. Refer to the
section in this document entitled "Incorporating PKWARE
Proprietary Technology into Your Product" for more
information.
public int FLAG_ENCRYPTION


Bit 11: Language encoding flag (EFS). If this bit is set,
the filename and comment fields for this file
MUST be encoded using UTF-8. (see APPENDIX D)
public int FLAG_EFS


Bit 13: Set when encrypting the Central Directory to indicate
selected data values in the Local Header are masked to
hide their actual values. See the section describing
the Strong Encryption Specification for details. Refer
to the section in this document entitled "Incorporating
PKWARE Proprietary Technology into Your Product" for
more information.
public int FLAG_HIDE


0 - The file is stored (no compression) */
public int COMPRESSION_NONE


1 - The file is Shrunk */
public int COMPRESSION_SHRUNK


2 - The file is Reduced with compression factor 1 */
public int COMPRESSION_REDUCED_1


3 - The file is Reduced with compression factor 2 */
public int COMPRESSION_REDUCED_2


4 - The file is Reduced with compression factor 3 */
public int COMPRESSION_REDUCED_3


5 - The file is Reduced with compression factor 4 */
public int COMPRESSION_REDUCED_4


6 - The file is Imploded */
public int COMPRESSION_IMPLODED


8 - The file is Deflated */
public int COMPRESSION_DEFLATE


9 - Enhanced Deflating using Deflate64(tm) */
public int COMPRESSION_DEFLATE64


10 - PKWARE Data Compression Library Imploding (old IBM TERSE) */
public int COMPRESSION_OLDIMPLODING


12 - File is compressed using BZIP2 algorithm */
public int COMPRESSION_BZIP2


14 - LZMA (EFS) */
public int COMPRESSION_LZMA


18 - File is compressed using IBM TERSE (new) */
public int COMPRESSION_IBM_TERSE


19 - IBM LZ77 z Architecture (PFS) */
public int COMPRESSION_LZ777


97 - WavPack compressed data */
public int COMPRESSION_WAVPACK


98 - PPMd version I, Rev 1 */
public int COMPRESSION_PPMd