jdk/test/java/util/zip/ZipFile/CorruptedZipFiles.java
author ohair
Wed, 06 Apr 2011 22:06:11 -0700
changeset 9035 1255eb81cc2f
parent 8553 46c2babb1e44
permissions -rw-r--r--
7033660: Update copyright year to 2011 on any files changed in 2011 Reviewed-by: dholmes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
9035
1255eb81cc2f 7033660: Update copyright year to 2011 on any files changed in 2011
ohair
parents: 8553
diff changeset
     2
 * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
/* @test
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
 * @bug 4770745 6218846 6218848 6237956
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
 * @summary test for correct detection and reporting of corrupted zip files
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
 * @author Martin Buchholz
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import java.util.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
import java.util.zip.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
import java.io.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
import static java.lang.System.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
import static java.util.zip.ZipFile.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
public class CorruptedZipFiles {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
    static int passed = 0, failed = 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
    static void fail(String msg) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
        failed++;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
        err.println(msg);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
    static void unexpected(Throwable t) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
        failed++;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
        t.printStackTrace();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
    public static void main(String[] args) throws Exception {
8553
46c2babb1e44 7021582: convert jar/zip code and tests to use try-with-resources
smarks
parents: 5805
diff changeset
    50
        try (FileOutputStream fos = new FileOutputStream("x.zip");
46c2babb1e44 7021582: convert jar/zip code and tests to use try-with-resources
smarks
parents: 5805
diff changeset
    51
             ZipOutputStream zos = new ZipOutputStream(fos))
46c2babb1e44 7021582: convert jar/zip code and tests to use try-with-resources
smarks
parents: 5805
diff changeset
    52
        {
5805
87c7dd70572a 6962067: TEST_BUG: Tests in java/util/zip/ZipFile leave file open
sherman
parents: 5506
diff changeset
    53
            ZipEntry e = new ZipEntry("x");
87c7dd70572a 6962067: TEST_BUG: Tests in java/util/zip/ZipFile leave file open
sherman
parents: 5506
diff changeset
    54
            zos.putNextEntry(e);
87c7dd70572a 6962067: TEST_BUG: Tests in java/util/zip/ZipFile leave file open
sherman
parents: 5506
diff changeset
    55
            zos.write((int)'x');
87c7dd70572a 6962067: TEST_BUG: Tests in java/util/zip/ZipFile leave file open
sherman
parents: 5506
diff changeset
    56
        }
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
        int len = (int)(new File("x.zip").length());
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
        byte[] good = new byte[len];
8553
46c2babb1e44 7021582: convert jar/zip code and tests to use try-with-resources
smarks
parents: 5805
diff changeset
    60
        try (FileInputStream fis = new FileInputStream("x.zip")) {
46c2babb1e44 7021582: convert jar/zip code and tests to use try-with-resources
smarks
parents: 5805
diff changeset
    61
            fis.read(good);
46c2babb1e44 7021582: convert jar/zip code and tests to use try-with-resources
smarks
parents: 5805
diff changeset
    62
        }
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
        new File("x.zip").delete();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
        int endpos = len - ENDHDR;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
        int cenpos = u16(good, endpos+ENDOFF);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
        int locpos = u16(good, cenpos+CENOFF);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
        if (u32(good, endpos) != ENDSIG) fail("Where's ENDSIG?");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
        if (u32(good, cenpos) != CENSIG) fail("Where's CENSIG?");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
        if (u32(good, locpos) != LOCSIG) fail("Where's LOCSIG?");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
        if (u16(good, locpos+LOCNAM) != u16(good,cenpos+CENNAM))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
            fail("Name field length mismatch");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
        if (u16(good, locpos+LOCEXT) != u16(good,cenpos+CENEXT))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
            fail("Extra field length mismatch");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
        byte[] bad;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
        err.println("corrupted ENDSIZ");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
        bad = good.clone();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
        bad[endpos+ENDSIZ]=(byte)0xff;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
        checkZipException(bad, ".*bad central directory size.*");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
        err.println("corrupted ENDOFF");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
        bad = good.clone();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
        bad[endpos+ENDOFF]=(byte)0xff;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
        checkZipException(bad, ".*bad central directory offset.*");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
        err.println("corrupted CENSIG");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
        bad = good.clone();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
        bad[cenpos]++;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
        checkZipException(bad, ".*bad signature.*");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
        err.println("corrupted CENFLG");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
        bad = good.clone();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
        bad[cenpos+CENFLG] |= 1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
        checkZipException(bad, ".*encrypted entry.*");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
        err.println("corrupted CENNAM 1");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
        bad = good.clone();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
        bad[cenpos+CENNAM]++;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
        checkZipException(bad, ".*bad header size.*");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
        err.println("corrupted CENNAM 2");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
        bad = good.clone();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
        bad[cenpos+CENNAM]--;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
        checkZipException(bad, ".*bad header size.*");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
        err.println("corrupted CENNAM 3");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
        bad = good.clone();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
        bad[cenpos+CENNAM]   = (byte)0xfd;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
        bad[cenpos+CENNAM+1] = (byte)0xfd;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
        checkZipException(bad, ".*bad header size.*");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
        err.println("corrupted CENEXT 1");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
        bad = good.clone();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
        bad[cenpos+CENEXT]++;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
        checkZipException(bad, ".*bad header size.*");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
        err.println("corrupted CENEXT 2");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
        bad = good.clone();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
        bad[cenpos+CENEXT]   = (byte)0xfd;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
        bad[cenpos+CENEXT+1] = (byte)0xfd;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
        checkZipException(bad, ".*bad header size.*");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
        err.println("corrupted CENCOM");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
        bad = good.clone();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
        bad[cenpos+CENCOM]++;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
        checkZipException(bad, ".*bad header size.*");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
        err.println("corrupted CENHOW");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
        bad = good.clone();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
        bad[cenpos+CENHOW] = 2;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
        checkZipException(bad, ".*bad compression method.*");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
        err.println("corrupted LOCSIG");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
        bad = good.clone();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
        bad[locpos]++;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
        checkZipExceptionInGetInputStream(bad, ".*bad signature.*");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
        out.printf("passed = %d, failed = %d%n", passed, failed);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
        if (failed > 0) throw new Exception("Some tests failed");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
    static int uniquifier = 432;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
    static void checkZipExceptionImpl(byte[] data,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
                                      String msgPattern,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
                                      boolean getInputStream) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
        String zipName = "bad" + (uniquifier++) + ".zip";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
        try {
8553
46c2babb1e44 7021582: convert jar/zip code and tests to use try-with-resources
smarks
parents: 5805
diff changeset
   151
            try (FileOutputStream fos = new FileOutputStream(zipName)) {
46c2babb1e44 7021582: convert jar/zip code and tests to use try-with-resources
smarks
parents: 5805
diff changeset
   152
                fos.write(data);
46c2babb1e44 7021582: convert jar/zip code and tests to use try-with-resources
smarks
parents: 5805
diff changeset
   153
            }
46c2babb1e44 7021582: convert jar/zip code and tests to use try-with-resources
smarks
parents: 5805
diff changeset
   154
            try (ZipFile zf = new ZipFile(zipName)) {
5805
87c7dd70572a 6962067: TEST_BUG: Tests in java/util/zip/ZipFile leave file open
sherman
parents: 5506
diff changeset
   155
                if (getInputStream) {
87c7dd70572a 6962067: TEST_BUG: Tests in java/util/zip/ZipFile leave file open
sherman
parents: 5506
diff changeset
   156
                    InputStream is = zf.getInputStream(new ZipEntry("x"));
87c7dd70572a 6962067: TEST_BUG: Tests in java/util/zip/ZipFile leave file open
sherman
parents: 5506
diff changeset
   157
                    is.read();
87c7dd70572a 6962067: TEST_BUG: Tests in java/util/zip/ZipFile leave file open
sherman
parents: 5506
diff changeset
   158
                }
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
            fail("Failed to throw expected ZipException");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
        } catch (ZipException e) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
            if (e.getMessage().matches(msgPattern))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
                passed++;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
            else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
                unexpected(e);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
        } catch (Throwable t) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
            unexpected(t);
8553
46c2babb1e44 7021582: convert jar/zip code and tests to use try-with-resources
smarks
parents: 5805
diff changeset
   168
        } finally {
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
            new File(zipName).delete();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
    static void checkZipException(byte[] data, String msgPattern) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
        checkZipExceptionImpl(data, msgPattern, false);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
    static void checkZipExceptionInGetInputStream(byte[] data, String msgPattern) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
        checkZipExceptionImpl(data, msgPattern, true);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
    static int u8(byte[] data, int offset) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
        return data[offset]&0xff;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
    static int u16(byte[] data, int offset) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
        return u8(data,offset) + (u8(data,offset+1)<<8);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
    static int u32(byte[] data, int offset) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
        return u16(data,offset) + (u16(data,offset+2)<<16);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
    // The following can be deleted once this bug is fixed:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
    // 6225935: "import static" accessibility rules for symbols different for no reason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
    static final long LOCSIG = ZipFile.LOCSIG;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
    static final long EXTSIG = ZipFile.EXTSIG;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
    static final long CENSIG = ZipFile.CENSIG;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
    static final long ENDSIG = ZipFile.ENDSIG;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
    static final int LOCHDR = ZipFile.LOCHDR;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
    static final int EXTHDR = ZipFile.EXTHDR;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
    static final int CENHDR = ZipFile.CENHDR;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
    static final int ENDHDR = ZipFile.ENDHDR;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
    static final int LOCVER = ZipFile.LOCVER;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
    static final int LOCFLG = ZipFile.LOCFLG;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
    static final int LOCHOW = ZipFile.LOCHOW;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
    static final int LOCTIM = ZipFile.LOCTIM;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
    static final int LOCCRC = ZipFile.LOCCRC;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
    static final int LOCSIZ = ZipFile.LOCSIZ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
    static final int LOCLEN = ZipFile.LOCLEN;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
    static final int LOCNAM = ZipFile.LOCNAM;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
    static final int LOCEXT = ZipFile.LOCEXT;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
    static final int CENVEM = ZipFile.CENVEM;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
    static final int CENVER = ZipFile.CENVER;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
    static final int CENFLG = ZipFile.CENFLG;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
    static final int CENHOW = ZipFile.CENHOW;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
    static final int CENTIM = ZipFile.CENTIM;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
    static final int CENCRC = ZipFile.CENCRC;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
    static final int CENSIZ = ZipFile.CENSIZ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
    static final int CENLEN = ZipFile.CENLEN;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
    static final int CENNAM = ZipFile.CENNAM;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
    static final int CENEXT = ZipFile.CENEXT;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
    static final int CENCOM = ZipFile.CENCOM;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
    static final int CENDSK = ZipFile.CENDSK;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
    static final int CENATT = ZipFile.CENATT;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
    static final int CENATX = ZipFile.CENATX;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
    static final int CENOFF = ZipFile.CENOFF;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
    static final int ENDSUB = ZipFile.ENDSUB;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
    static final int ENDTOT = ZipFile.ENDTOT;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
    static final int ENDSIZ = ZipFile.ENDSIZ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
    static final int ENDOFF = ZipFile.ENDOFF;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
    static final int ENDCOM = ZipFile.ENDCOM;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
}