2502
|
1 |
"
|
|
2 |
COPYRIGHT (c) 1998,2010 by eXept Software AG
|
|
3 |
All Rights Reserved
|
|
4 |
|
|
5 |
This software is furnished under a license and may be used
|
|
6 |
only in accordance with the terms of that license and with the
|
|
7 |
inclusion of the above copyright notice. This software may not
|
|
8 |
be provided or otherwise made available to, or used by, any
|
|
9 |
other person. No title to or ownership of the software is
|
|
10 |
hereby transferred.
|
|
11 |
"
|
|
12 |
"{ Package: 'stx:libbasic2' }"
|
|
13 |
|
|
14 |
SharedPool subclass:#ZipArchiveConstants
|
|
15 |
instanceVariableNames:''
|
|
16 |
classVariableNames:'ECREC_SIZE LREC_SIZE CREC_SIZE CENTRAL_DIRECTORY_SIZE
|
|
17 |
TOTAL_ENTRIES_CENTRAL_DIR C_COMPRESSED_SIZE
|
|
18 |
C_RELATIVE_OFFSET_LOCAL_HEADER C_FILENAME_LENGTH
|
|
19 |
C_UNCOMPRESSED_SIZE C_CENTRAL_HEADER_SIGNATURE
|
|
20 |
C_LOCAL_HEADER_SIGNATURE C_CENTRAL_END_SIGNATURE
|
|
21 |
COMPRESSION_STORED COMPRESSION_SHRUNK COMPRESSION_REDUCED1
|
|
22 |
COMPRESSION_REDUCED2 COMPRESSION_REDUCED3 COMPRESSION_REDUCED4
|
|
23 |
COMPRESSION_IMPLODED COMPRESSION_TOKENIZED COMPRESSION_DEFLATED
|
2510
|
24 |
COMPRESSION_ENHANCED_DEFLATED COMPRESSION_PKWARE
|
|
25 |
COMPRESSION_RESERVED11 COMPRESSION_BZIP2 COMPRESSION_RESERVED13
|
|
26 |
COMPRESSION_RESERVED14 COMPRESSION_RESERVED15 COMPRESSION_LZMA
|
|
27 |
COMPRESSION_RESERVED17 COMPRESSION_IBM_TERSE COMPRESSION_IBM_LZ77
|
|
28 |
COMPRESSION_WAVPACK COMPRESSION_PPMD_V1_R1
|
2502
|
29 |
EXTERNALFILEATTRIBUTES_ISFILE EXTERNALFILEATTRIBUTES_ISDIRECTORY'
|
|
30 |
poolDictionaries:''
|
|
31 |
category:'System-Support-FileFormats'
|
|
32 |
!
|
|
33 |
|
|
34 |
!ZipArchiveConstants class methodsFor:'documentation'!
|
|
35 |
|
|
36 |
copyright
|
|
37 |
"
|
|
38 |
COPYRIGHT (c) 1998,2010 by eXept Software AG
|
|
39 |
All Rights Reserved
|
|
40 |
|
|
41 |
This software is furnished under a license and may be used
|
|
42 |
only in accordance with the terms of that license and with the
|
|
43 |
inclusion of the above copyright notice. This software may not
|
|
44 |
be provided or otherwise made available to, or used by, any
|
|
45 |
other person. No title to or ownership of the software is
|
|
46 |
hereby transferred.
|
|
47 |
"
|
|
48 |
!
|
|
49 |
|
|
50 |
documentation
|
|
51 |
"
|
|
52 |
refactored shared constants to here
|
|
53 |
|
|
54 |
[author:]
|
|
55 |
Claus Gittinger
|
|
56 |
"
|
|
57 |
! !
|
|
58 |
|
|
59 |
!ZipArchiveConstants class methodsFor:'class initialization'!
|
|
60 |
|
|
61 |
initialize
|
|
62 |
ECREC_SIZE := 18.
|
|
63 |
LREC_SIZE := 26.
|
|
64 |
CREC_SIZE := 42.
|
|
65 |
|
|
66 |
TOTAL_ENTRIES_CENTRAL_DIR := 10.
|
|
67 |
CENTRAL_DIRECTORY_SIZE := 12.
|
|
68 |
|
|
69 |
C_COMPRESSED_SIZE := 16.
|
|
70 |
C_UNCOMPRESSED_SIZE := 20.
|
|
71 |
C_FILENAME_LENGTH := 24.
|
|
72 |
C_RELATIVE_OFFSET_LOCAL_HEADER := 38.
|
|
73 |
|
|
74 |
C_CENTRAL_HEADER_SIGNATURE := 16r02014b50.
|
|
75 |
C_LOCAL_HEADER_SIGNATURE := 16r04034b50.
|
|
76 |
C_CENTRAL_END_SIGNATURE := 16r06054b50.
|
|
77 |
|
|
78 |
"/ compression methods
|
|
79 |
|
2510
|
80 |
COMPRESSION_STORED := 0.
|
|
81 |
COMPRESSION_SHRUNK := 1.
|
|
82 |
COMPRESSION_REDUCED1 := 2.
|
|
83 |
COMPRESSION_REDUCED2 := 3.
|
|
84 |
COMPRESSION_REDUCED3 := 4.
|
|
85 |
COMPRESSION_REDUCED4 := 5.
|
|
86 |
COMPRESSION_IMPLODED := 6.
|
|
87 |
COMPRESSION_TOKENIZED := 7.
|
|
88 |
COMPRESSION_DEFLATED := 8.
|
|
89 |
COMPRESSION_ENHANCED_DEFLATED := 9.
|
|
90 |
COMPRESSION_PKWARE := 10.
|
|
91 |
COMPRESSION_RESERVED11 := 11.
|
|
92 |
COMPRESSION_BZIP2 := 12.
|
|
93 |
COMPRESSION_RESERVED13 := 13.
|
|
94 |
COMPRESSION_RESERVED14 := 14.
|
|
95 |
COMPRESSION_RESERVED15 := 15.
|
|
96 |
COMPRESSION_LZMA := 16.
|
|
97 |
COMPRESSION_RESERVED17 := 17.
|
|
98 |
COMPRESSION_IBM_TERSE := 18.
|
|
99 |
COMPRESSION_IBM_LZ77 := 19.
|
|
100 |
|
|
101 |
COMPRESSION_WAVPACK := 97.
|
|
102 |
COMPRESSION_PPMD_V1_R1 := 98.
|
2502
|
103 |
|
|
104 |
EXTERNALFILEATTRIBUTES_ISFILE := 32.
|
|
105 |
EXTERNALFILEATTRIBUTES_ISDIRECTORY := 16.
|
|
106 |
|
|
107 |
"
|
|
108 |
ZipArchiveConstants initialize
|
|
109 |
"
|
|
110 |
|
2510
|
111 |
"Modified: / 19-11-2010 / 15:54:36 / cg"
|
2502
|
112 |
! !
|
|
113 |
|
|
114 |
!ZipArchiveConstants class methodsFor:'documentation'!
|
|
115 |
|
|
116 |
version_CVS
|
2510
|
117 |
^ '$Header: /cvs/stx/stx/libbasic2/ZipArchiveConstants.st,v 1.2 2010-11-19 14:54:49 cg Exp $'
|
2502
|
118 |
! !
|
|
119 |
|
|
120 |
ZipArchiveConstants initialize!
|