Home
last modified time | relevance | path

Searched refs:ze (Results 1 – 21 of 21) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/zip/
DAbstractZipFileTest.java161 ZipEntry ze = zip.getEntry(name); in testStoredEntrySize() local
162 ze.setCompressedSize(expectedLength - 1); in testStoredEntrySize()
164 InputStream stream = zip.getInputStream(ze); in testStoredEntrySize()
228 ZipEntry ze = new ZipEntry(Integer.toHexString(entry)); in writeEntries() local
230 ze.setSize(entrySize); in writeEntries()
232 out.putNextEntry(ze); in writeEntries()
265 ZipEntry ze = new ZipEntry("a"); in testSTORED() local
266 ze.setMethod(ZipEntry.STORED); in testSTORED()
267 out.putNextEntry(ze); in testSTORED()
274 ZipEntry ze = new ZipEntry("a"); in testSTORED() local
[all …]
DZipEntryTest.java142 ZipEntry ze = new ZipEntry("x"); in testTooLongExtra() local
144 ze.setExtra(tooLongExtra); in testTooLongExtra()
155 ZipEntry ze = new ZipEntry("x"); in testMaxLengthExtra() local
156 ze.setSize(0); in testMaxLengthExtra()
157 ze.setTime(ENTRY_TIME); in testMaxLengthExtra()
158 ze.setExtra(maxLengthExtra); in testMaxLengthExtra()
159 out.putNextEntry(ze); in testMaxLengthExtra()
192 ZipEntry ze = new ZipEntry("x"); in checkSetTime() local
193 ze.setSize(0); in checkSetTime()
194 ze.setTime(time); in checkSetTime()
[all …]
DZip64FileTest.java47 ZipEntry ze = entries.nextElement(); in testZip64Support_largeNumberOfEntries() local
48 assertEquals(2, ze.getSize()); in testZip64Support_largeNumberOfEntries()
51 is = zf.getInputStream(ze); in testZip64Support_largeNumberOfEntries()
74 ZipEntry ze = entries.nextElement(); in testZip64Support_totalLargerThan4G() local
75 assertEquals(1073741824L, ze.getSize()); in testZip64Support_totalLargerThan4G()
97 ZipEntry ze = entries.nextElement(); in testZip64Support_hugeEntry() local
98 assertEquals(4294967410L, ze.getSize()); in testZip64Support_hugeEntry()
DZipInputStreamTest.java94 ZipEntry ze = zi.getNextEntry(); in testReadOnIncompleteStream() local
/libcore/ojluni/src/test/java/util/zip/
DTestExtraTime.java125 ZipEntry ze = new ZipEntry("TestExtraTime.java"); in test0() local
126 ze.setExtra(extra); in test0()
127 ze.setLastModifiedTime(mtime); in test0()
129 ze.setLastAccessTime(atime); in test0()
131 ze.setCreationTime(ctime); in test0()
132 zos.putNextEntry(ze); in test0()
139 ze = new ZipEntry("TestExtraEntry"); in test0()
140 zos.putNextEntry(ze); in test0()
149 ze = zis.getNextEntry(); in test0()
151 check(mtime, atime, ctime, ze, extra); in test0()
[all …]
DTestLocalTime.java80 ZipEntry ze = new ZipEntry("TestLocalTime.java"); in getBytes() local
81 ze.setTimeLocal(mtime); in getBytes()
82 check(ze, mtime); in getBytes()
83 zos.putNextEntry(ze); in getBytes()
104 ZipEntry ze = zis.getNextEntry(); in test() local
106 check(ze, expected); in test()
116 ze = zf.getEntry("TestLocalTime.java"); in test()
117 check(ze, expected); in test()
124 static void check(ZipEntry ze, LocalDateTime expected) { in check() argument
125 LocalDateTime ldt = ze.getTimeLocal(); in check()
/libcore/ojluni/src/main/native/
DZipFile.c168 jzentry *ze; in ZipFile_getEntry() local
181 ze = ZIP_GetEntry2(zip, path, (jint)ulen, addSlash); in ZipFile_getEntry()
185 return ptr_to_jlong(ze); in ZipFile_getEntry()
193 jzentry *ze = jlong_to_ptr(zentry); in ZipFile_freeEntry() local
194 ZIP_FreeEntry(zip, ze); in ZipFile_freeEntry()
201 jzentry *ze = ZIP_GetNextEntry(jlong_to_ptr(zfile), n); in ZipFile_getNextEntry() local
202 return ptr_to_jlong(ze); in ZipFile_getNextEntry()
208 jzentry *ze = jlong_to_ptr(zentry); in ZipFile_getEntryMethod() local
209 return ze->csize != 0 ? DEFLATED : STORED; in ZipFile_getEntryMethod()
215 jzentry *ze = jlong_to_ptr(zentry); in ZipFile_getEntryFlag() local
[all …]
Dzip_util.c1113 jzentry *ze; in newEntry() local
1116 if ((ze = (jzentry *) malloc(sizeof(jzentry))) == NULL) return NULL; in newEntry()
1117 ze->name = NULL; in newEntry()
1118 ze->extra = NULL; in newEntry()
1119 ze->comment = NULL; in newEntry()
1137 ze->time = CENTIM(cen); in newEntry()
1138 ze->size = CENLEN(cen); in newEntry()
1139 ze->csize = (CENHOW(cen) == STORED) ? 0 : CENSIZ(cen); in newEntry()
1140 ze->crc = CENCRC(cen); in newEntry()
1142 ze->pos = -(zip->locpos + locoff); in newEntry()
[all …]
Dzip_util.h283 ZIP_FreeEntry(jzfile *zip, jzentry *ze);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DZipOutputStreamTest.java74 ZipEntry ze = new ZipEntry("testEntry"); in test_closeEntry() local
75 ze.setTime(System.currentTimeMillis()); in test_closeEntry()
76 zos.putNextEntry(ze); in test_closeEntry()
80 ze.getSize() == 11 && ze.getCompressedSize() == 13); in test_closeEntry()
88 ZipEntry ze = new ZipEntry("test"); in test_finish() local
89 zos.putNextEntry(ze); in test_finish()
92 assertEquals("Finish failed to closeCurrentEntry", 11, ze.getSize()); in test_finish()
110 ZipEntry ze = new ZipEntry("testEntry"); in test_putNextEntryLjava_util_zip_ZipEntry() local
111 ze.setTime(System.currentTimeMillis()); in test_putNextEntryLjava_util_zip_ZipEntry()
112 zos.putNextEntry(ze); in test_putNextEntryLjava_util_zip_ZipEntry()
[all …]
/libcore/ojluni/src/main/java/java/util/jar/
DJarFile.java264 ZipEntry ze = super.getEntry(name); in getEntry() local
265 if (ze != null) { in getEntry()
266 return new JarFileEntry(ze); in getEntry()
281 ZipEntry ze = e.nextElement(); in next() local
282 return new JarFileEntry(ze); in next()
320 JarFileEntry(ZipEntry ze) { in JarFileEntry() argument
321 super(ze); in JarFileEntry()
522 private byte[] getBytes(ZipEntry ze) throws IOException { in getBytes() argument
523 try (InputStream is = super.getInputStream(ze)) { in getBytes()
524 return IOUtils.readFully(is, (int)ze.getSize(), true); in getBytes()
[all …]
DJarOutputStream.java89 public void putNextEntry(ZipEntry ze) throws IOException { in putNextEntry() argument
93 byte[] edata = ze.getExtra(); in putNextEntry()
105 ze.setExtra(edata); in putNextEntry()
109 super.putNextEntry(ze); in putNextEntry()
DJarEntry.java63 public JarEntry(ZipEntry ze) { in JarEntry() argument
64 super(ze); in JarEntry()
DJarVerifier.java779 ZipEntry ze = enum_.nextElement(); in entries2() local
780 if (JarVerifier.isSigningRelated(ze.getName())) { in entries2()
783 entry = jar.newEntry(ze); in entries2()
/libcore/ojluni/src/test/java/util/zip/ZipFile/
DZip64SizeTest.java88 ZipEntry ze = zip.getEntry(LARGE_FILE_NAME); in validateZipEntrySizes() local
89 System.out.printf("Entry: %s, size= %s%n", ze.getName(), ze.getSize()); in validateZipEntrySizes()
90 assertTrue(ze.getSize() == LARGE_FILE_SIZE); in validateZipEntrySizes()
91 ze = zip.getEntry(SMALL_FILE_NAME); in validateZipEntrySizes()
92 System.out.printf("Entry: %s, size= %s%n", ze.getName(), ze.getSize()); in validateZipEntrySizes()
93 assertTrue(ze.getSize() == SMALL_FILE_SIZE); in validateZipEntrySizes()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
DJarOutputStreamTest.java71 ZipEntry ze = new ZipEntry("Test"); in test_JarOutputStreamLjava_io_OutputStream() local
75 joutFoo.putNextEntry(ze); in test_JarOutputStreamLjava_io_OutputStream()
85 joutFoo.putNextEntry(ze); in test_JarOutputStreamLjava_io_OutputStream()
/libcore/benchmarks/src/benchmarks/
DZipFileBenchmark.java64 ZipEntry ze = new ZipEntry(Integer.toHexString(entry)); in writeEntries() local
65 ze.setSize(entrySize); in writeEntries()
66 out.putNextEntry(ze); in writeEntries()
DZipFileReadBenchmark.java57 ZipEntry ze = new ZipEntry(Integer.toHexString(entry)); in writeEntries() local
58 ze.setSize(entrySize); in writeEntries()
59 out.putNextEntry(ze); in writeEntries()
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
DURLJarFile.java131 ZipEntry ze = super.getEntry(name); in getEntry() local
132 if (ze != null) { in getEntry()
133 if (ze instanceof JarEntry) in getEntry()
134 return new URLJarFileEntry((JarEntry)ze); in getEntry()
138 ze.getClass()); in getEntry()
/libcore/ojluni/annotations/hiddenapi/java/util/jar/
DJarFile.java94 private byte[] getBytes(java.util.zip.ZipEntry ze) throws java.io.IOException { in getBytes() argument
98 public synchronized java.io.InputStream getInputStream(java.util.zip.ZipEntry ze) in getInputStream() argument
119 java.util.jar.JarEntry newEntry(java.util.zip.ZipEntry ze) { in newEntry() argument
193 JarFileEntry(java.util.zip.ZipEntry ze) { in JarFileEntry() argument
/libcore/ojluni/src/main/java/java/util/zip/
DGZIPInputStream.java252 } catch (IOException ze) { in readTrailer()