ZipArchiveConstants.st
changeset 2502 333bf972be34
child 2510 661f5e28cd6d
equal deleted inserted replaced
2501:6707b2bc05d3 2502:333bf972be34
       
     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
       
    24 		EXTERNALFILEATTRIBUTES_ISFILE EXTERNALFILEATTRIBUTES_ISDIRECTORY'
       
    25 	poolDictionaries:''
       
    26 	category:'System-Support-FileFormats'
       
    27 !
       
    28 
       
    29 !ZipArchiveConstants class methodsFor:'documentation'!
       
    30 
       
    31 copyright
       
    32 "
       
    33  COPYRIGHT (c) 1998,2010 by eXept Software AG
       
    34               All Rights Reserved
       
    35 
       
    36  This software is furnished under a license and may be used
       
    37  only in accordance with the terms of that license and with the
       
    38  inclusion of the above copyright notice.   This software may not
       
    39  be provided or otherwise made available to, or used by, any
       
    40  other person.  No title to or ownership of the software is
       
    41  hereby transferred.
       
    42 "
       
    43 !
       
    44 
       
    45 documentation
       
    46 "
       
    47     refactored shared constants to here
       
    48 
       
    49     [author:]
       
    50         Claus Gittinger
       
    51 "
       
    52 ! !
       
    53 
       
    54 !ZipArchiveConstants class methodsFor:'class initialization'!
       
    55 
       
    56 initialize
       
    57     ECREC_SIZE := 18.
       
    58     LREC_SIZE := 26.
       
    59     CREC_SIZE := 42.
       
    60 
       
    61     TOTAL_ENTRIES_CENTRAL_DIR := 10.
       
    62     CENTRAL_DIRECTORY_SIZE := 12.
       
    63 
       
    64     C_COMPRESSED_SIZE := 16.
       
    65     C_UNCOMPRESSED_SIZE := 20.
       
    66     C_FILENAME_LENGTH := 24.
       
    67     C_RELATIVE_OFFSET_LOCAL_HEADER := 38.
       
    68 
       
    69     C_CENTRAL_HEADER_SIGNATURE := 16r02014b50.
       
    70     C_LOCAL_HEADER_SIGNATURE := 16r04034b50.
       
    71     C_CENTRAL_END_SIGNATURE := 16r06054b50.
       
    72 
       
    73     "/ compression methods
       
    74 
       
    75     COMPRESSION_STORED := 0.
       
    76     COMPRESSION_SHRUNK := 1.
       
    77     COMPRESSION_REDUCED1 := 2.
       
    78     COMPRESSION_REDUCED2 := 3.
       
    79     COMPRESSION_REDUCED3 := 4.
       
    80     COMPRESSION_REDUCED4 := 5.
       
    81     COMPRESSION_IMPLODED := 6.
       
    82     COMPRESSION_TOKENIZED := 7.
       
    83     COMPRESSION_DEFLATED := 8.
       
    84 
       
    85     EXTERNALFILEATTRIBUTES_ISFILE := 32.
       
    86     EXTERNALFILEATTRIBUTES_ISDIRECTORY := 16.
       
    87 
       
    88     "
       
    89      ZipArchiveConstants initialize
       
    90     "
       
    91 
       
    92     "Modified: / 19-11-2010 / 15:36:16 / cg"
       
    93 ! !
       
    94 
       
    95 !ZipArchiveConstants class methodsFor:'documentation'!
       
    96 
       
    97 version_CVS
       
    98     ^ '$Header: /cvs/stx/stx/libbasic2/ZipArchiveConstants.st,v 1.1 2010-11-19 14:49:09 cg Exp $'
       
    99 ! !
       
   100 
       
   101 ZipArchiveConstants initialize!