| Constants | 
| DEFLATED | Compression method for the deflate algorithm (the only one currently 
 supported). | 
| NO_COMPRESSION | Compression level for no compression. | 
| BEST_SPEED | Compression level for fastest compression | 
| BEST_COMPRESSION | Compression level for best compression | 
| DEFAULT_COMPRESSION | Default compression level. | 
| FILTERED | Compression strategy best used for data consisting mostly of small 
 values with a somewhat random distribution. Forces more Huffman 
 coding and less string matching. | 
| HUFFMAN_ONLY | Compression strategy for Huffman coding only. | 
| DEFAULT_STRATEGY | Default compression strategy | 
| STORED | entry is uncompressed | 
| DEF_MEM_LEVEL | entry is uncompressed | 
| LOCSIG | Header Signature: "PK\003\004" | 
| EXTSIG | Header Signature: "PK\007\008" | 
| CENSIG | Header Signature: "PK\001\002" | 
| ENDSIG | Header Signature: "PK\005\006" | 
| SPANSIG | Header Signature: "PK\007\008" | 
| LOCHDR | LOC header size in bytes (including signatures) | 
| EXTHDR | EXT header size in bytes (including signatures) | 
| CENHDR | CEN header size in bytes (including signatures) | 
| ENDHDR | END header size in bytes (including signatures) | 
| LOCVER | LOC header field "version needed to extract" offset | 
| LOCFLG | LOC header field "general purpose bit flags" offset | 
| LOCHOW | LOC header field "compression method" offset | 
| LOCTIM | LOC header field "modification time" offset | 
| LOCCRC | LOC header field "crc of uncompressed data" offset | 
| LOCSIZ | LOC header field "compressed data size" offset | 
| LOCLEN | LOC header field "uncompressed data size" offset | 
| LOCNAM | LOC header field "filename length" offset | 
| LOCEXT | LOC header field "extra field length" offset | 
| EXTCRC | EXT header field "crc of uncompressed data" offsets | 
| EXTSIZ | EXT header field "compressed size" offsets | 
| EXTLEN | EXT header field "uncompressed size" offsets | 
| CENVEM | CEN header field "version made by" offset | 
| CENVER | CEN header field "version needed to extract" offset | 
| CENFLG | CEN header field "general purpose bit flags" offset | 
| CENHOW | CEN header field "compression method" offset | 
| CENTIM | CEN header field "modification time" offset | 
| CENDAT | CEN header field "modification time" offset | 
| CENCRC | CEN header field "crc of uncompressed data" offset | 
| CENSIZ | CEN header field "compressed size" offset | 
| CENLEN | CEN header field "uncompressed size" offset | 
| CENNAM | CEN header field "length of filename" offset | 
| CENEXT | CEN header field "length of extra field" offset | 
| CENCOM | CEN header field "file comment length" offset | 
| CENDSK | CEN header field "disk number start" offset | 
| CENATT | CEN header field "internal file attributes" offset | 
| CENATX | CEN header field "external file attributes" offset | 
| CENOFF | CEN header field "offset of local header" offset | 
| ENDSUB | END header field "number of entries on this disk" offset | 
| ENDTOT | END header field "total number of entries" offset | 
| ENDSIZ | END header field "central directory size" offset | 
| ENDOFF | END header field "central directory offset" offset | 
| ENDCOM | END header field "size of zip file comment" offset | 
| Constants' Details | 
| DEFLATED 
| const short DEFLATED = 8; 
 
DescriptionCompression method for the deflate algorithm (the only one currently 
 supported).
  |  | 
| NO_COMPRESSION 
| const short NO_COMPRESSION = 0; 
 
DescriptionCompression level for no compression.
  |  | 
| BEST_SPEED 
| const short BEST_SPEED = 1; 
 
DescriptionCompression level for fastest compression
  |  | 
| BEST_COMPRESSION 
| const short BEST_COMPRESSION = 9; 
 
DescriptionCompression level for best compression
  |  | 
| DEFAULT_COMPRESSION 
| const short DEFAULT_COMPRESSION = -1; 
 
DescriptionDefault compression level.
  |  | 
| FILTERED 
| const short FILTERED = 1; 
 
DescriptionCompression strategy best used for data consisting mostly of small 
 values with a somewhat random distribution. Forces more Huffman 
 coding and less string matching.
  |  | 
| HUFFMAN_ONLY 
| const short HUFFMAN_ONLY = 2; 
 
DescriptionCompression strategy for Huffman coding only.
  |  | 
| DEFAULT_STRATEGY 
| const short DEFAULT_STRATEGY = 0; 
 
DescriptionDefault compression strategy
  |  | 
| STORED 
| const short STORED = 0; 
 
Descriptionentry is uncompressed
  |  | 
| DEF_MEM_LEVEL 
| const short DEF_MEM_LEVEL = 8; 
 
Descriptionentry is uncompressed
  |  | 
| LOCSIG 
| const long LOCSIG = 0x04034b50; 
 
DescriptionHeader Signature: "PK\003\004"
  |  | 
| EXTSIG 
| const long EXTSIG = 0x08074b50; 
 
DescriptionHeader Signature: "PK\007\008"
  |  | 
| CENSIG 
| const long CENSIG = 0x02014b50; 
 
DescriptionHeader Signature: "PK\001\002"
  |  | 
| ENDSIG 
| const long ENDSIG = 0x06054b50; 
 
DescriptionHeader Signature: "PK\005\006"
  |  | 
| SPANSIG 
| const long SPANSIG = 0x08074b50; 
 
DescriptionHeader Signature: "PK\007\008"
  |  | 
| LOCHDR 
| const short LOCHDR = 30; 
 
DescriptionLOC header size in bytes (including signatures)
  |  | 
| EXTHDR 
| const short EXTHDR = 16; 
 
DescriptionEXT header size in bytes (including signatures)
  |  | 
| CENHDR 
| const short CENHDR = 46; 
 
DescriptionCEN header size in bytes (including signatures)
  |  | 
| ENDHDR 
| const short ENDHDR = 22; 
 
DescriptionEND header size in bytes (including signatures)
  |  | 
| LOCVER 
| const short LOCVER = 4; 
 
DescriptionLOC header field "version needed to extract" offset
  |  | 
| LOCFLG 
| const short LOCFLG = 6; 
 
DescriptionLOC header field "general purpose bit flags" offset
  |  | 
| LOCHOW 
| const short LOCHOW = 8; 
 
DescriptionLOC header field "compression method" offset
  |  | 
| LOCTIM 
| const short LOCTIM = 10; 
 
DescriptionLOC header field "modification time" offset
  |  | 
| LOCCRC 
| const short LOCCRC = 14; 
 
DescriptionLOC header field "crc of uncompressed data" offset
  |  | 
| LOCSIZ 
| const short LOCSIZ = 18; 
 
DescriptionLOC header field "compressed data size" offset
  |  | 
| LOCLEN 
| const short LOCLEN = 22; 
 
DescriptionLOC header field "uncompressed data size" offset
  |  | 
| LOCNAM 
| const short LOCNAM = 26; 
 
DescriptionLOC header field "filename length" offset
  |  | 
| LOCEXT 
| const short LOCEXT = 28; 
 
DescriptionLOC header field "extra field length" offset
  |  | 
| EXTCRC 
| const short EXTCRC = 4; 
 
DescriptionEXT header field "crc of uncompressed data" offsets
  |  | 
| EXTSIZ 
| const short EXTSIZ = 8; 
 
DescriptionEXT header field "compressed size" offsets
  |  | 
| EXTLEN 
| const short EXTLEN = 12; 
 
DescriptionEXT header field "uncompressed size" offsets
  |  | 
| CENVEM 
| const short CENVEM = 4; 
 
DescriptionCEN header field "version made by" offset
  |  | 
| CENVER 
| const short CENVER = 6; 
 
DescriptionCEN header field "version needed to extract" offset
  |  | 
| CENFLG 
| const short CENFLG = 8; 
 
DescriptionCEN header field "general purpose bit flags" offset
  |  | 
| CENHOW 
| const short CENHOW = 10; 
 
DescriptionCEN header field "compression method" offset
  |  | 
| CENTIM 
| const short CENTIM = 12; 
 
DescriptionCEN header field "modification time" offset
  |  | 
| CENDAT 
| const short CENDAT = 14; 
 
DescriptionCEN header field "modification time" offset
  |  | 
| CENCRC 
| const short CENCRC = 16; 
 
DescriptionCEN header field "crc of uncompressed data" offset
  |  | 
| CENSIZ 
| const short CENSIZ = 20; 
 
DescriptionCEN header field "compressed size" offset
  |  | 
| CENLEN 
| const short CENLEN = 24; 
 
DescriptionCEN header field "uncompressed size" offset
  |  | 
| CENNAM 
| const short CENNAM = 28; 
 
DescriptionCEN header field "length of filename" offset
  |  | 
| CENEXT 
| const short CENEXT = 30; 
 
DescriptionCEN header field "length of extra field" offset
  |  | 
| CENCOM 
| const short CENCOM = 32; 
 
DescriptionCEN header field "file comment length" offset
  |  | 
| CENDSK 
| const short CENDSK = 34; 
 
DescriptionCEN header field "disk number start" offset
  |  | 
| CENATT 
| const short CENATT = 36; 
 
DescriptionCEN header field "internal file attributes" offset
  |  | 
| CENATX 
| const short CENATX = 38; 
 
DescriptionCEN header field "external file attributes" offset
  |  | 
| CENOFF 
| const short CENOFF = 42; 
 
DescriptionCEN header field "offset of local header" offset
  |  | 
| ENDSUB 
| const short ENDSUB = 8; 
 
DescriptionEND header field "number of entries on this disk" offset
  |  | 
| ENDTOT 
| const short ENDTOT = 10; 
 
DescriptionEND header field "total number of entries" offset
  |  | 
| ENDSIZ 
| const short ENDSIZ = 12; 
 
DescriptionEND header field "central directory size" offset
  |  | 
| ENDOFF 
| const short ENDOFF = 16; 
 
DescriptionEND header field "central directory offset" offset
  |  | 
| ENDCOM 
| const short ENDCOM = 20; 
 
DescriptionEND header field "size of zip file comment" offset
  |  | 
Copyright © 2013, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.