1032N/A/*
2362N/A * Copyright (c) 1995, 1996, Oracle and/or its affiliates. All rights reserved.
1032N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1032N/A *
1032N/A * This code is free software; you can redistribute it and/or modify it
1032N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
1032N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
1032N/A *
1032N/A * This code is distributed in the hope that it will be useful, but WITHOUT
1032N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1032N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1032N/A * version 2 for more details (a copy is included in the LICENSE file that
1032N/A * accompanied this code).
1032N/A *
1032N/A * You should have received a copy of the GNU General Public License version
1032N/A * 2 along with this work; if not, write to the Free Software Foundation,
1032N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1032N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
1032N/A */
1032N/A
1032N/Apackage java.util.zip;
1032N/A
1032N/A/*
1032N/A * This class defines the constants that are used by the classes
1032N/A * which manipulate Zip64 files.
1032N/A */
1032N/A
1032N/Aclass ZipConstants64 {
1032N/A
1032N/A /*
1032N/A * ZIP64 constants
1032N/A */
1032N/A static final long ZIP64_ENDSIG = 0x06064b50L; // "PK\006\006"
1032N/A static final long ZIP64_LOCSIG = 0x07064b50L; // "PK\006\007"
1032N/A static final int ZIP64_ENDHDR = 56; // ZIP64 end header size
1032N/A static final int ZIP64_LOCHDR = 20; // ZIP64 end loc header size
1032N/A static final int ZIP64_EXTHDR = 24; // EXT header size
1032N/A static final int ZIP64_EXTID = 0x0001; // Extra field Zip64 header ID
1032N/A
1032N/A static final int ZIP64_MAGICCOUNT = 0xFFFF;
1032N/A static final long ZIP64_MAGICVAL = 0xFFFFFFFFL;
1032N/A
1032N/A /*
1032N/A * Zip64 End of central directory (END) header field offsets
1032N/A */
1032N/A static final int ZIP64_ENDLEN = 4; // size of zip64 end of central dir
1032N/A static final int ZIP64_ENDVEM = 12; // version made by
1032N/A static final int ZIP64_ENDVER = 14; // version needed to extract
1032N/A static final int ZIP64_ENDNMD = 16; // number of this disk
1032N/A static final int ZIP64_ENDDSK = 20; // disk number of start
1032N/A static final int ZIP64_ENDTOD = 24; // total number of entries on this disk
1032N/A static final int ZIP64_ENDTOT = 32; // total number of entries
1032N/A static final int ZIP64_ENDSIZ = 40; // central directory size in bytes
1032N/A static final int ZIP64_ENDOFF = 48; // offset of first CEN header
1032N/A static final int ZIP64_ENDEXT = 56; // zip64 extensible data sector
1032N/A
1032N/A /*
1032N/A * Zip64 End of central directory locator field offsets
1032N/A */
1032N/A static final int ZIP64_LOCDSK = 4; // disk number start
1032N/A static final int ZIP64_LOCOFF = 8; // offset of zip64 end
1032N/A static final int ZIP64_LOCTOT = 16; // total number of disks
1032N/A
1032N/A /*
1032N/A * Zip64 Extra local (EXT) header field offsets
1032N/A */
1032N/A static final int ZIP64_EXTCRC = 4; // uncompressed file crc-32 value
1032N/A static final int ZIP64_EXTSIZ = 8; // compressed size, 8-byte
1032N/A static final int ZIP64_EXTLEN = 16; // uncompressed size, 8-byte
1032N/A
1107N/A /*
1107N/A * Language encoding flag EFS
1107N/A */
1107N/A static final int EFS = 0x800; // If this bit is set the filename and
1107N/A // comment fields for this file must be
1107N/A // encoded using UTF-8.
1107N/A
1032N/A private ZipConstants64() {}
1032N/A}