LibreOffice
LibreOffice 24.2 SDK API Reference
Variables
com::sun::star::packages::zip::ZipConstants Constant Group Referencepublished

defines the constants used by the ZIP interfaces. More...

Variables

const short DEFLATED = 8
 Compression method for the deflate algorithm (the only one currently supported). More...
 
const short NO_COMPRESSION = 0
 Compression level for no compression. More...
 
const short BEST_SPEED = 1
 Compression level for fastest compression. More...
 
const short BEST_COMPRESSION = 9
 Compression level for best compression. More...
 
const short DEFAULT_COMPRESSION = -1
 Default compression level. More...
 
const short FILTERED = 1
 Compression strategy best used for data consisting mostly of small values with a somewhat random distribution. More...
 
const short HUFFMAN_ONLY = 2
 Compression strategy for Huffman coding only. More...
 
const short DEFAULT_STRATEGY = 0
 Default compression strategy. More...
 
const short STORED = 0
 entry is uncompressed More...
 
const short DEF_MEM_LEVEL = 8
 entry is uncompressed More...
 
const long LOCSIG = 0x04034b50
 Header Signature: "PK\003\004". More...
 
const long EXTSIG = 0x08074b50
 Header Signature: "PK\007\008". More...
 
const long CENSIG = 0x02014b50
 Header Signature: "PK\001\002". More...
 
const long ENDSIG = 0x06054b50
 Header Signature: "PK\005\006". More...
 
const long SPANSIG = 0x08074b50
 Header Signature: "PK\007\008". More...
 
const short LOCHDR = 30
 LOC header size in bytes (including signatures) More...
 
const short EXTHDR = 16
 EXT header size in bytes (including signatures) More...
 
const short CENHDR = 46
 CEN header size in bytes (including signatures) More...
 
const short ENDHDR = 22
 END header size in bytes (including signatures) More...
 
const short LOCVER = 4
 LOC LOC LOC. More...
 
const short LOCFLG = 6
 LOC header field "general purpose bit flags" offset. More...
 
const short LOCHOW = 8
 LOC header field "compression method" offset. More...
 
const short LOCTIM = 10
 LOC header field "modification time" offset. More...
 
const short LOCCRC = 14
 LOC header field "CRC of uncompressed data" offset. More...
 
const short LOCSIZ = 18
 LOC header field "compressed data size" offset. More...
 
const short LOCLEN = 22
 LOC header field "uncompressed data size" offset. More...
 
const short LOCNAM = 26
 LOC header field "filename length" offset. More...
 
const short LOCEXT = 28
 LOC header field "extra field length" offset. More...
 
const short EXTCRC = 4
 EXT header field "CRC of uncompressed data" offsets. More...
 
const short EXTSIZ = 8
 EXT header field "compressed size" offsets. More...
 
const short EXTLEN = 12
 EXT header field "uncompressed size" offsets. More...
 
const short CENVEM = 4
 CEN header field "version made by" offset. More...
 
const short CENVER = 6
 CEN header field "version needed to extract" offset. More...
 
const short CENFLG = 8
 CEN header field "general purpose bit flags" offset. More...
 
const short CENHOW = 10
 CEN header field "compression method" offset. More...
 
const short CENTIM = 12
 CEN header field "modification time" offset. More...
 
const short CENDAT = 14
 CEN header field "modification time" offset. More...
 
const short CENCRC = 16
 CEN header field "CRC of uncompressed data" offset. More...
 
const short CENSIZ = 20
 CEN header field "compressed size" offset. More...
 
const short CENLEN = 24
 CEN header field "uncompressed size" offset. More...
 
const short CENNAM = 28
 CEN header field "length of filename" offset. More...
 
const short CENEXT = 30
 CEN header field "length of extra field" offset. More...
 
const short CENCOM = 32
 CEN header field "file comment length" offset. More...
 
const short CENDSK = 34
 CEN header field "disk number start" offset. More...
 
const short CENATT = 36
 CEN header field "internal file attributes" offset. More...
 
const short CENATX = 38
 CEN header field "external file attributes" offset. More...
 
const short CENOFF = 42
 CEN header field "offset of local header" offset. More...
 
const short ENDSUB = 8
 END header field "number of entries on this disk" offset. More...
 
const short ENDTOT = 10
 END header field "total number of entries" offset. More...
 
const short ENDSIZ = 12
 END header field "central directory size" offset. More...
 
const short ENDOFF = 16
 END header field "central directory offset" offset. More...
 
const short ENDCOM = 20
 END header field "size of zip file comment" offset. More...
 

Detailed Description

defines the constants used by the ZIP interfaces.

Variable Documentation

◆ BEST_COMPRESSION

const short BEST_COMPRESSION = 9

Compression level for best compression.

◆ BEST_SPEED

const short BEST_SPEED = 1

Compression level for fastest compression.

◆ CENATT

const short CENATT = 36

CEN header field "internal file attributes" offset.

◆ CENATX

const short CENATX = 38

CEN header field "external file attributes" offset.

◆ CENCOM

const short CENCOM = 32

CEN header field "file comment length" offset.

◆ CENCRC

const short CENCRC = 16

CEN header field "CRC of uncompressed data" offset.

◆ CENDAT

const short CENDAT = 14

CEN header field "modification time" offset.

◆ CENDSK

const short CENDSK = 34

CEN header field "disk number start" offset.

◆ CENEXT

const short CENEXT = 30

CEN header field "length of extra field" offset.

◆ CENFLG

const short CENFLG = 8

CEN header field "general purpose bit flags" offset.

◆ CENHDR

const short CENHDR = 46

CEN header size in bytes (including signatures)

◆ CENHOW

const short CENHOW = 10

CEN header field "compression method" offset.

◆ CENLEN

const short CENLEN = 24

CEN header field "uncompressed size" offset.

◆ CENNAM

const short CENNAM = 28

CEN header field "length of filename" offset.

◆ CENOFF

const short CENOFF = 42

CEN header field "offset of local header" offset.

◆ CENSIG

const long CENSIG = 0x02014b50

Header Signature: "PK\001\002".

◆ CENSIZ

const short CENSIZ = 20

CEN header field "compressed size" offset.

◆ CENTIM

const short CENTIM = 12

CEN header field "modification time" offset.

◆ CENVEM

const short CENVEM = 4

CEN header field "version made by" offset.

◆ CENVER

const short CENVER = 6

CEN header field "version needed to extract" offset.

◆ DEF_MEM_LEVEL

const short DEF_MEM_LEVEL = 8

entry is uncompressed

◆ DEFAULT_COMPRESSION

const short DEFAULT_COMPRESSION = -1

Default compression level.

◆ DEFAULT_STRATEGY

const short DEFAULT_STRATEGY = 0

Default compression strategy.

◆ DEFLATED

const short DEFLATED = 8

Compression method for the deflate algorithm (the only one currently supported).

◆ ENDCOM

const short ENDCOM = 20

END header field "size of zip file comment" offset.

◆ ENDHDR

const short ENDHDR = 22

END header size in bytes (including signatures)

◆ ENDOFF

const short ENDOFF = 16

END header field "central directory offset" offset.

◆ ENDSIG

const long ENDSIG = 0x06054b50

Header Signature: "PK\005\006".

◆ ENDSIZ

const short ENDSIZ = 12

END header field "central directory size" offset.

◆ ENDSUB

const short ENDSUB = 8

END header field "number of entries on this disk" offset.

◆ ENDTOT

const short ENDTOT = 10

END header field "total number of entries" offset.

◆ EXTCRC

const short EXTCRC = 4

EXT header field "CRC of uncompressed data" offsets.

◆ EXTHDR

const short EXTHDR = 16

EXT header size in bytes (including signatures)

◆ EXTLEN

const short EXTLEN = 12

EXT header field "uncompressed size" offsets.

◆ EXTSIG

const long EXTSIG = 0x08074b50

Header Signature: "PK\007\008".

◆ EXTSIZ

const short EXTSIZ = 8

EXT header field "compressed size" offsets.

◆ FILTERED

const short FILTERED = 1

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

const short HUFFMAN_ONLY = 2

Compression strategy for Huffman coding only.

◆ LOCCRC

const short LOCCRC = 14

LOC header field "CRC of uncompressed data" offset.

◆ LOCEXT

const short LOCEXT = 28

LOC header field "extra field length" offset.

◆ LOCFLG

const short LOCFLG = 6

LOC header field "general purpose bit flags" offset.

◆ LOCHDR

const short LOCHDR = 30

LOC header size in bytes (including signatures)

◆ LOCHOW

const short LOCHOW = 8

LOC header field "compression method" offset.

◆ LOCLEN

const short LOCLEN = 22

LOC header field "uncompressed data size" offset.

◆ LOCNAM

const short LOCNAM = 26

LOC header field "filename length" offset.

◆ LOCSIG

const long LOCSIG = 0x04034b50

Header Signature: "PK\003\004".

◆ LOCSIZ

const short LOCSIZ = 18

LOC header field "compressed data size" offset.

◆ LOCTIM

const short LOCTIM = 10

LOC header field "modification time" offset.

◆ LOCVER

const short LOCVER = 4

LOC LOC LOC.

LOC header field "version needed to extract" offset

◆ NO_COMPRESSION

const short NO_COMPRESSION = 0

Compression level for no compression.

◆ SPANSIG

const long SPANSIG = 0x08074b50

Header Signature: "PK\007\008".

◆ STORED

const short STORED = 0

entry is uncompressed