< prev index next >

src/java.base/share/classes/java/util/zip/ZipConstants64.java

Print this page
8203328: Rename EFS in java.util.zip internals to something meaningful
Reviewed-by: sherman


  57     static final int  ZIP64_ENDTOT = 32;      // total number of entries
  58     static final int  ZIP64_ENDSIZ = 40;      // central directory size in bytes
  59     static final int  ZIP64_ENDOFF = 48;      // offset of first CEN header
  60     static final int  ZIP64_ENDEXT = 56;      // zip64 extensible data sector
  61 
  62     /*
  63      * Zip64 End of central directory locator field offsets
  64      */
  65     static final int  ZIP64_LOCDSK = 4;       // disk number start
  66     static final int  ZIP64_LOCOFF = 8;       // offset of zip64 end
  67     static final int  ZIP64_LOCTOT = 16;      // total number of disks
  68 
  69     /*
  70      * Zip64 Extra local (EXT) header field offsets
  71      */
  72     static final int  ZIP64_EXTCRC = 4;       // uncompressed file crc-32 value
  73     static final int  ZIP64_EXTSIZ = 8;       // compressed size, 8-byte
  74     static final int  ZIP64_EXTLEN = 16;      // uncompressed size, 8-byte
  75 
  76     /*
  77      * Language encoding flag EFS



  78      */
  79     static final int EFS = 0x800;       // If this bit is set the filename and
  80                                         // comment fields for this file must be
  81                                         // encoded using UTF-8.
  82 
  83     /*
  84      * Constants below are defined here (instead of in ZipConstants)
  85      * to avoid being exposed as public fields of ZipFile, ZipEntry,
  86      * ZipInputStream and ZipOutputstream.
  87      */
  88 
  89     /*
  90      * Extra field header ID
  91      */
  92     static final int  EXTID_ZIP64 = 0x0001;    // Zip64
  93     static final int  EXTID_NTFS  = 0x000a;    // NTFS
  94     static final int  EXTID_UNIX  = 0x000d;    // UNIX
  95     static final int  EXTID_EXTT  = 0x5455;    // Info-ZIP Extended Timestamp
  96 
  97     /*
  98      * EXTT timestamp flags
  99      */
 100     static final int  EXTT_FLAG_LMT = 0x1;       // LastModifiedTime
 101     static final int  EXTT_FLAG_LAT = 0x2;       // LastAccessTime


  57     static final int  ZIP64_ENDTOT = 32;      // total number of entries
  58     static final int  ZIP64_ENDSIZ = 40;      // central directory size in bytes
  59     static final int  ZIP64_ENDOFF = 48;      // offset of first CEN header
  60     static final int  ZIP64_ENDEXT = 56;      // zip64 extensible data sector
  61 
  62     /*
  63      * Zip64 End of central directory locator field offsets
  64      */
  65     static final int  ZIP64_LOCDSK = 4;       // disk number start
  66     static final int  ZIP64_LOCOFF = 8;       // offset of zip64 end
  67     static final int  ZIP64_LOCTOT = 16;      // total number of disks
  68 
  69     /*
  70      * Zip64 Extra local (EXT) header field offsets
  71      */
  72     static final int  ZIP64_EXTCRC = 4;       // uncompressed file crc-32 value
  73     static final int  ZIP64_EXTSIZ = 8;       // compressed size, 8-byte
  74     static final int  ZIP64_EXTLEN = 16;      // uncompressed size, 8-byte
  75 
  76     /*
  77      * Language encoding flag (general purpose flag bit 11)
  78      *
  79      * If this bit is set the filename and comment fields for this
  80      * entry must be encoded using UTF-8.
  81      */
  82     static final int USE_UTF8 = 0x800;


  83 
  84     /*
  85      * Constants below are defined here (instead of in ZipConstants)
  86      * to avoid being exposed as public fields of ZipFile, ZipEntry,
  87      * ZipInputStream and ZipOutputstream.
  88      */
  89 
  90     /*
  91      * Extra field header ID
  92      */
  93     static final int  EXTID_ZIP64 = 0x0001;    // Zip64
  94     static final int  EXTID_NTFS  = 0x000a;    // NTFS
  95     static final int  EXTID_UNIX  = 0x000d;    // UNIX
  96     static final int  EXTID_EXTT  = 0x5455;    // Info-ZIP Extended Timestamp
  97 
  98     /*
  99      * EXTT timestamp flags
 100      */
 101     static final int  EXTT_FLAG_LMT = 0x1;       // LastModifiedTime
 102     static final int  EXTT_FLAG_LAT = 0x2;       // LastAccessTime
< prev index next >