jdk/test/java/util/zip/ZipFile/CorruptedZipFiles.java
author sherman
Sat, 06 Feb 2010 09:26:57 -0800
changeset 4822 bcc6dbec57d8
parent 2 90ce3da70b43
child 5506 202f599c92aa
permissions -rw-r--r--
6923692: java/classes_util TEST_BUG:ReadZip.java fails when Summary: to create the test file at test.dir Reviewed-by: alanb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
 * Copyright 2005 Sun Microsystems, Inc.  All Rights Reserved.
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
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 * CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
 * have any questions.
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 {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
        ZipOutputStream zos = new ZipOutputStream(
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
            new FileOutputStream("x.zip"));
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
        ZipEntry e = new ZipEntry("x");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
        zos.putNextEntry(e);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
        zos.write((int)'x');
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
        zos.close();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
        zos = null;
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];
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
        FileInputStream fis = new FileInputStream("x.zip");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
        fis.read(good);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
        fis.close();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
        fis = null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
        new File("x.zip").delete();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
        int endpos = len - ENDHDR;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
        int cenpos = u16(good, endpos+ENDOFF);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
        int locpos = u16(good, cenpos+CENOFF);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
        if (u32(good, endpos) != ENDSIG) fail("Where's ENDSIG?");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
        if (u32(good, cenpos) != CENSIG) fail("Where's CENSIG?");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
        if (u32(good, locpos) != LOCSIG) fail("Where's LOCSIG?");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
        if (u16(good, locpos+LOCNAM) != u16(good,cenpos+CENNAM))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
            fail("Name field length mismatch");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
        if (u16(good, locpos+LOCEXT) != u16(good,cenpos+CENEXT))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
            fail("Extra field length mismatch");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
        byte[] bad;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
        err.println("corrupted ENDSIZ");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
        bad = good.clone();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
        bad[endpos+ENDSIZ]=(byte)0xff;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
        checkZipException(bad, ".*bad central directory size.*");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
        err.println("corrupted ENDOFF");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
        bad = good.clone();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
        bad[endpos+ENDOFF]=(byte)0xff;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
        checkZipException(bad, ".*bad central directory offset.*");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
        err.println("corrupted CENSIG");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
        bad = good.clone();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
        bad[cenpos]++;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
        checkZipException(bad, ".*bad signature.*");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
        err.println("corrupted CENFLG");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
        bad = good.clone();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
        bad[cenpos+CENFLG] |= 1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
        checkZipException(bad, ".*encrypted entry.*");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
        err.println("corrupted CENNAM 1");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
        bad = good.clone();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
        bad[cenpos+CENNAM]++;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
        checkZipException(bad, ".*bad header size.*");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
        err.println("corrupted CENNAM 2");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
        bad = good.clone();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
        bad[cenpos+CENNAM]--;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
        checkZipException(bad, ".*bad header size.*");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
        err.println("corrupted CENNAM 3");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
        bad = good.clone();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
        bad[cenpos+CENNAM]   = (byte)0xfd;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
        bad[cenpos+CENNAM+1] = (byte)0xfd;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
        checkZipException(bad, ".*bad header size.*");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
        err.println("corrupted CENEXT 1");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
        bad = good.clone();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
        bad[cenpos+CENEXT]++;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
        checkZipException(bad, ".*bad header size.*");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
        err.println("corrupted CENEXT 2");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
        bad = good.clone();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
        bad[cenpos+CENEXT]   = (byte)0xfd;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
        bad[cenpos+CENEXT+1] = (byte)0xfd;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
        checkZipException(bad, ".*bad header size.*");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
        err.println("corrupted CENCOM");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
        bad = good.clone();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
        bad[cenpos+CENCOM]++;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
        checkZipException(bad, ".*bad header size.*");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
        err.println("corrupted CENHOW");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
        bad = good.clone();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
        bad[cenpos+CENHOW] = 2;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
        checkZipException(bad, ".*bad compression method.*");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
        err.println("corrupted LOCSIG");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
        bad = good.clone();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
        bad[locpos]++;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
        checkZipExceptionInGetInputStream(bad, ".*bad signature.*");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
        out.printf("passed = %d, failed = %d%n", passed, failed);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
        if (failed > 0) throw new Exception("Some tests failed");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
    static int uniquifier = 432;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
    static void checkZipExceptionImpl(byte[] data,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
                                      String msgPattern,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
                                      boolean getInputStream) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
        String zipName = "bad" + (uniquifier++) + ".zip";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
        try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
            FileOutputStream fos = new FileOutputStream(zipName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
            fos.write(data);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
            fos.close();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
            ZipFile zf = new ZipFile(zipName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
            if (getInputStream) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
                InputStream is = zf.getInputStream(new ZipEntry("x"));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
                is.read();
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
            zf.close();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
        } catch (ZipException e) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
            if (e.getMessage().matches(msgPattern))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
                passed++;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
            else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
                unexpected(e);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
        } catch (Throwable t) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
            unexpected(t);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
        finally {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
            new File(zipName).delete();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
    static void checkZipException(byte[] data, String msgPattern) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
        checkZipExceptionImpl(data, msgPattern, false);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
    static void checkZipExceptionInGetInputStream(byte[] data, String msgPattern) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
        checkZipExceptionImpl(data, msgPattern, true);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
    static int u8(byte[] data, int offset) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
        return data[offset]&0xff;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
    static int u16(byte[] data, int offset) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
        return u8(data,offset) + (u8(data,offset+1)<<8);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
    static int u32(byte[] data, int offset) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
        return u16(data,offset) + (u16(data,offset+2)<<16);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
    // The following can be deleted once this bug is fixed:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
    // 6225935: "import static" accessibility rules for symbols different for no reason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
    static final long LOCSIG = ZipFile.LOCSIG;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
    static final long EXTSIG = ZipFile.EXTSIG;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
    static final long CENSIG = ZipFile.CENSIG;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
    static final long ENDSIG = ZipFile.ENDSIG;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
    static final int LOCHDR = ZipFile.LOCHDR;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
    static final int EXTHDR = ZipFile.EXTHDR;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
    static final int CENHDR = ZipFile.CENHDR;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
    static final int ENDHDR = ZipFile.ENDHDR;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
    static final int LOCVER = ZipFile.LOCVER;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
    static final int LOCFLG = ZipFile.LOCFLG;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
    static final int LOCHOW = ZipFile.LOCHOW;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
    static final int LOCTIM = ZipFile.LOCTIM;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
    static final int LOCCRC = ZipFile.LOCCRC;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
    static final int LOCSIZ = ZipFile.LOCSIZ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
    static final int LOCLEN = ZipFile.LOCLEN;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
    static final int LOCNAM = ZipFile.LOCNAM;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
    static final int LOCEXT = ZipFile.LOCEXT;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
    static final int CENVEM = ZipFile.CENVEM;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
    static final int CENVER = ZipFile.CENVER;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
    static final int CENFLG = ZipFile.CENFLG;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
    static final int CENHOW = ZipFile.CENHOW;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
    static final int CENTIM = ZipFile.CENTIM;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
    static final int CENCRC = ZipFile.CENCRC;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
    static final int CENSIZ = ZipFile.CENSIZ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
    static final int CENLEN = ZipFile.CENLEN;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
    static final int CENNAM = ZipFile.CENNAM;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
    static final int CENEXT = ZipFile.CENEXT;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
    static final int CENCOM = ZipFile.CENCOM;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
    static final int CENDSK = ZipFile.CENDSK;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
    static final int CENATT = ZipFile.CENATT;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
    static final int CENATX = ZipFile.CENATX;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
    static final int CENOFF = ZipFile.CENOFF;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
    static final int ENDSUB = ZipFile.ENDSUB;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
    static final int ENDTOT = ZipFile.ENDTOT;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
    static final int ENDSIZ = ZipFile.ENDSIZ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
    static final int ENDOFF = ZipFile.ENDOFF;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
    static final int ENDCOM = ZipFile.ENDCOM;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
}