Searched refs:JAR_MAGIC (Results 1 - 2 of 2) sorted by relevance
/openjdk7/jdk/src/share/classes/java/util/jar/ |
H A D | JarOutputStream.java | 46 private static final int JAR_MAGIC = 0xCAFE; field in class:JarOutputStream 103 set16(edata, 0, JAR_MAGIC); // extra field id 122 if (get16(edata, i) == JAR_MAGIC) {
|
/openjdk7/jdk/test/java/util/jar/ |
H A D | TestExtra.java | 28 * read correctly, taking into account the JAR_MAGIC written into the extra 45 final static int JAR_MAGIC = 0xcafe; // private IN JarOutputStream.java field in class:TestExtra 125 /** Tests the client providing extra data which uses JAR_MAGIC header. */ 132 set16(data, 4, JAR_MAGIC); 225 // zeroth entry should have JAR_MAGIC 228 byte[] data = getField(JAR_MAGIC, extraData); 229 if (!check(data != null, "unexpected null data for JAR_MAGIC")) { 230 check(data.length != 0, "unexpected non-zero data length for JAR_MAGIC"); 233 // In a jar file, the first ZipEntry should have both JAR_MAGIC
|
Completed in 30 milliseconds