Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/java/util/zip/
DAbstractZipFileTest.java163 ZipEntry ze = zip.getEntry(name); in testStoredEntrySize() local
164 ze.setCompressedSize(expectedLength - 1); in testStoredEntrySize()
166 InputStream stream = zip.getInputStream(ze); in testStoredEntrySize()
230 ZipEntry ze = new ZipEntry(Integer.toHexString(entry)); in writeEntries() local
232 ze.setSize(entrySize); in writeEntries()
234 out.putNextEntry(ze); in writeEntries()
267 ZipEntry ze = new ZipEntry("a"); in testSTORED() local
268 ze.setMethod(ZipEntry.STORED); in testSTORED()
269 out.putNextEntry(ze); in testSTORED()
276 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DZipOutputStreamTest.java70 ZipEntry ze = new ZipEntry("testEntry"); in test_closeEntry() local
71 ze.setTime(System.currentTimeMillis()); in test_closeEntry()
72 zos.putNextEntry(ze); in test_closeEntry()
76 ze.getSize() == 11 && ze.getCompressedSize() == 13); in test_closeEntry()
84 ZipEntry ze = new ZipEntry("test"); in test_finish() local
85 zos.putNextEntry(ze); in test_finish()
88 assertEquals("Finish failed to closeCurrentEntry", 11, ze.getSize()); in test_finish()
106 ZipEntry ze = new ZipEntry("testEntry"); in test_putNextEntryLjava_util_zip_ZipEntry() local
107 ze.setTime(System.currentTimeMillis()); in test_putNextEntryLjava_util_zip_ZipEntry()
108 zos.putNextEntry(ze); in test_putNextEntryLjava_util_zip_ZipEntry()
[all …]
/libcore/ojluni/src/main/native/
DZipFile.c173 jzentry *ze; in ZipFile_getEntry() local
186 ze = ZIP_GetEntry2(zip, path, (jint)ulen, addSlash); in ZipFile_getEntry()
190 return ptr_to_jlong(ze); in ZipFile_getEntry()
198 jzentry *ze = jlong_to_ptr(zentry); in ZipFile_freeEntry() local
199 ZIP_FreeEntry(zip, ze); in ZipFile_freeEntry()
206 jzentry *ze = ZIP_GetNextEntry(jlong_to_ptr(zfile), n); in ZipFile_getNextEntry() local
207 return ptr_to_jlong(ze); in ZipFile_getNextEntry()
213 jzentry *ze = jlong_to_ptr(zentry); in ZipFile_getEntryMethod() local
214 return ze->csize != 0 ? DEFLATED : STORED; in ZipFile_getEntryMethod()
220 jzentry *ze = jlong_to_ptr(zentry); in ZipFile_getEntryFlag() local
[all …]
Dzip_util.c1030 jzentry *ze; in newEntry() local
1033 if ((ze = (jzentry *) malloc(sizeof(jzentry))) == NULL) return NULL; in newEntry()
1034 ze->name = NULL; in newEntry()
1035 ze->extra = NULL; in newEntry()
1036 ze->comment = NULL; in newEntry()
1054 ze->time = CENTIM(cen); in newEntry()
1055 ze->size = CENLEN(cen); in newEntry()
1056 ze->csize = (CENHOW(cen) == STORED) ? 0 : CENSIZ(cen); in newEntry()
1057 ze->crc = CENCRC(cen); in newEntry()
1059 ze->pos = -(zip->locpos + locoff); in newEntry()
[all …]
Dzip_util.h277 void ZIP_FreeEntry(jzfile *zip, jzentry *ze);
/libcore/ojluni/src/main/java/java/util/jar/
DJarFile.java250 ZipEntry ze = super.getEntry(name); in getEntry() local
251 if (ze != null) { in getEntry()
252 return new JarFileEntry(ze); in getEntry()
267 ZipEntry ze = e.nextElement(); in next() local
268 return new JarFileEntry(ze); in next()
296 JarFileEntry(ZipEntry ze) { in JarFileEntry() argument
297 super(ze); in JarFileEntry()
433 private byte[] getBytes(ZipEntry ze) throws IOException { in getBytes() argument
434 try (InputStream is = super.getInputStream(ze)) { in getBytes()
435 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.java61 public JarEntry(ZipEntry ze) { in JarEntry() argument
62 super(ze); in JarEntry()
DJarVerifier.java775 ZipEntry ze = enum_.nextElement(); in entries2() local
776 if (JarVerifier.isSigningRelated(ze.getName())) { in entries2()
779 entry = jar.newEntry(ze); in entries2()
/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/
DZipFile.java361 ZipEntry ze = getZipEntry(name, jzentry); in getEntry() local
363 return ze; in getEntry()
584 ZipEntry ze = getZipEntry(null, jzentry); in next() local
586 return ze; in next()
DGZIPInputStream.java244 } catch (IOException ze) { in readTrailer()