13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package java.util.zip;
27
28 /*
29 * This interface defines the constants that are used by the classes
30 * which manipulate ZIP files.
31 *
32 * @author David Connelly
33 */
34 interface ZipConstants {
35 /*
36 * Header signatures
37 */
38 static long LOCSIG = 0x04034b50L; // "PK\003\004"
39 static long EXTSIG = 0x08074b50L; // "PK\007\008"
40 static long CENSIG = 0x02014b50L; // "PK\001\002"
41 static long ENDSIG = 0x06054b50L; // "PK\005\006"
42
43 /*
44 * Header sizes in bytes (including signatures)
45 */
46 static final int LOCHDR = 30; // LOC header size
47 static final int EXTHDR = 16; // EXT header size
48 static final int CENHDR = 46; // CEN header size
49 static final int ENDHDR = 22; // END header size
50
51 /*
52 * Local file (LOC) header field offsets
|
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package java.util.zip;
27
28 /*
29 * This interface defines the constants that are used by the classes
30 * which manipulate ZIP files.
31 *
32 * @author David Connelly
33 * @since 1.1
34 */
35 interface ZipConstants {
36 /*
37 * Header signatures
38 */
39 static long LOCSIG = 0x04034b50L; // "PK\003\004"
40 static long EXTSIG = 0x08074b50L; // "PK\007\008"
41 static long CENSIG = 0x02014b50L; // "PK\001\002"
42 static long ENDSIG = 0x06054b50L; // "PK\005\006"
43
44 /*
45 * Header sizes in bytes (including signatures)
46 */
47 static final int LOCHDR = 30; // LOC header size
48 static final int EXTHDR = 16; // EXT header size
49 static final int CENHDR = 46; // CEN header size
50 static final int ENDHDR = 22; // END header size
51
52 /*
53 * Local file (LOC) header field offsets
|