Home
last modified time | relevance | path

Searched refs:ZipFile (Results 1 – 25 of 40) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/util/zip/
DZipFileTest.java30 import java.util.zip.ZipFile;
46 try (ZipFile zipFile = new ZipFile(nonExistentFile, ZipFile.OPEN_READ)) { in test_FileNotFound()
62 try (ZipFile zipFile = new ZipFile(zipWithCp1251, cp1251)) { in test_zipFileWith_cp1251_fileNames()
68 try (ZipFile zipFile = new ZipFile(zipWithCp1251.getAbsolutePath(), cp1251)) { in test_zipFileWith_cp1251_fileNames()
87 new ZipFile(corruptedZip); in test_throwsWhenTriesToOpenCorruptedFile()
108 new ZipFile(corruptedZip); in test_throwsWhenTriesToOpen_nonEmptyFileWhichStartsWithEndHeader()
DAbstractZipFileTest.java32 import java.util.zip.ZipFile;
56 ZipFile zipFile = new ZipFile(f); in testInflatingFilesRequiringZipRefill()
124 ZipFile bad = new ZipFile(badZip); in testDuplicateEntries()
159 ZipFile zip = new ZipFile(zipFile); in testStoredEntrySize()
192 ZipFile zipFile = new ZipFile(f); in testZipFileWithLotsOfEntries()
207 ZipFile zipFile = new ZipFile(f); in testZipFileLargerThan2GiB()
418 ZipFile zipFile = new ZipFile(file); in testComments()
432 try (ZipFile zipFile = new ZipFile(file)) { in test_getComment_unset()
451 ZipFile zipFile = new ZipFile(file); in test_NUL_in_filename()
493 try (ZipFile zipFile = new ZipFile(emptyZip)) { in testConstructorWorksWhenReadingEmptyZipArchive()
[all …]
DZipEntryTest.java32 import java.util.zip.ZipFile;
88 ZipFile zipFile = new ZipFile(f); in test_utf8FileNames()
135 ZipFile zipFile = new ZipFile(f); in testMaxLengthName()
164 ZipFile zipFile = new ZipFile(f); in testMaxLengthExtra()
200 ZipFile zipFile = new ZipFile(f); in checkSetTime()
250 ZipFile zipFile = new ZipFile(f); in testMaxLengthComment()
281 ZipFile zipFile = new ZipFile(f); in testCommentAndExtraInSameOrder()
DZip64FileTest.java29 import java.util.zip.ZipFile;
40 ZipFile zf = null; in testZip64Support_largeNumberOfEntries()
42 zf = new ZipFile(file); in testZip64Support_largeNumberOfEntries()
68 ZipFile zf = null; in testZip64Support_totalLargerThan4G()
70 zf = new ZipFile(file); in testZip64Support_totalLargerThan4G()
91 ZipFile zf = null; in testZip64Support_hugeEntry()
93 zf = new ZipFile(file); in testZip64Support_hugeEntry()
DOldZipFileTest.java26 import java.util.zip.ZipFile;
74 private ZipFile zfile;
83 ZipFile zf = new ZipFile(fl); in test_close()
154 zfile = new ZipFile(tempFile); in setUp()
DOldAndroidZipFileTest.java26 import java.util.zip.ZipFile;
101 ZipFile zipFile = new ZipFile(fileName); in scanZip()
124 ZipFile zipFile; in read2()
131 zipFile = new ZipFile(fileName); in read2()
DOldAndroidZipStressTest.java31 import java.util.zip.ZipFile;
84 ZipFile zip = new ZipFile(file); in testZipStressManifest()
102 ZipFile zip = new ZipFile(file); in testZipStressAllFiles()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DZipFileTest.java31 import java.util.zip.ZipFile;
42 private ZipFile zfile;
51 ZipFile zip = new ZipFile(file, ZipFile.OPEN_DELETE | ZipFile.OPEN_READ); in test_ConstructorLjava_io_FileI()
57 zip = new ZipFile(file, ZipFile.OPEN_READ); in test_ConstructorLjava_io_FileI()
64 zip = new ZipFile(file, -1); in test_ConstructorLjava_io_FileI()
77 ZipFile zip = new ZipFile(tempFileName); in test_ConstructorLjava_lang_String()
81 zip = new ZipFile(file.getAbsolutePath()); in test_ConstructorLjava_lang_String()
89 protected ZipEntry test_finalize1(ZipFile zip) { in test_finalize1()
93 protected ZipFile test_finalize2(File file) throws IOException { in test_finalize2()
94 return new ZipFile(file); in test_finalize2()
[all …]
/libcore/ojluni/src/main/native/
DZipFile.c392 NATIVE_METHOD(ZipFile, getFileDescriptor, "(J)I"),
393 NATIVE_METHOD(ZipFile, getEntry, "(J[BZ)J"),
394 NATIVE_METHOD(ZipFile, freeEntry, "(JJ)V"),
395 NATIVE_METHOD(ZipFile, getNextEntry, "(JI)J"),
396 NATIVE_METHOD(ZipFile, close, "(J)V"),
397 NATIVE_METHOD(ZipFile, open, "(Ljava/lang/String;IJZ)J"),
398 NATIVE_METHOD(ZipFile, getTotal, "(J)I"),
399 NATIVE_METHOD(ZipFile, startsWithLOC, "(J)Z"),
400 NATIVE_METHOD(ZipFile, read, "(JJJ[BII)I"),
401 NATIVE_METHOD(ZipFile, getEntryTime, "(J)J"),
[all …]
/libcore/benchmarks/src/benchmarks/
DZipFileBenchmark.java27 import java.util.zip.ZipFile;
42 ZipFile zipFile = new ZipFile(file); in setUp()
51 ZipFile zf = new ZipFile(file); in timeZipFileOpen()
DBufferedZipFileBenchmark.java27 import java.util.zip.ZipFile;
58 ZipFile zipFile = new ZipFile(file); in timeUnbufferedRead()
71 ZipFile zipFile = new ZipFile(file); in timeBufferedRead()
DZipFileReadBenchmark.java28 import java.util.zip.ZipFile;
41 ZipFile zipFile = new ZipFile(file); in setUp()
77 ZipFile zipFile = new ZipFile(file); in timeZipFileRead()
/libcore/ojluni/annotations/hiddenapi/java/util/zip/
DZipFile.java32 public class ZipFile implements java.util.zip.ZipConstants, java.io.Closeable { class
34 public ZipFile(java.lang.String name) throws java.io.IOException { in ZipFile() method in ZipFile
38 public ZipFile(java.io.File file, int mode) throws java.io.IOException { in ZipFile() method in ZipFile
42 public ZipFile(java.io.File file) throws java.io.IOException, java.util.zip.ZipException { in ZipFile() method in ZipFile
46 public ZipFile(java.io.File file, int mode, java.nio.charset.Charset charset) in ZipFile() method in ZipFile
51 public ZipFile(java.lang.String name, java.nio.charset.Charset charset) in ZipFile() method in ZipFile
56 public ZipFile(java.io.File file, java.nio.charset.Charset charset) throws java.io.IOException { in ZipFile() method in ZipFile
263 java.util.zip.ZipFile.ZipFileInputStream zfin, in ZipFileInflaterInputStream()
290 private final java.util.zip.ZipFile.ZipFileInputStream zfin;
/libcore/luni/src/test/java/libcore/dalvik/system/
DZipPathValidatorTest.java26 import java.util.zip.ZipFile;
86 ZipFile zipFile = new ZipFile(tempFile); in testZipFileCallback()
148 ZipFile zipFile = new ZipFile(tempFile, StandardCharsets.US_ASCII); in testZipFileDecodesEntryWithUTF8WhenZipCoderIsNotUTF8ButEntryIs()
/libcore/luni/src/test/java/libcore/java/util/jar/
DOldJarFileTest.java25 import java.util.zip.ZipFile;
89 ZipFile.OPEN_READ); in test_ConstructorLjava_io_FileZI()
96 ZipFile.OPEN_READ); in test_ConstructorLjava_io_FileZI()
101 ZipFile.OPEN_READ | ZipFile.OPEN_DELETE + 33); in test_ConstructorLjava_io_FileZI()
/libcore/tools/openjdk-analyzer/src/libcore/tools/analyzer/openjdk/
DClassFileUtil.java27 import java.util.zip.ZipFile;
54 static ZipEntry getEntryFromClassName(ZipFile zipFile, String className, in getEntryFromClassName()
66 static ZipEntry getEntryFromClassNameOrThrow(ZipFile zipFile, in getEntryFromClassNameOrThrow()
DDependencyAnalyzer.java51 import java.util.zip.ZipFile;
94 try (ZipFile zipFile = new ZipFile(mClassPath.toFile()); in analyze()
221 private static List<ZipEntry> getEntriesFromNameOrThrow(ZipFile zipFile, Path zipPath, in getEntriesFromNameOrThrow()
291 private final ZipFile zipFile;
297 this.zipFile = new ZipFile(classpath.toFile()); in Impl()
411 private final Map<String, ZipFile> mZipFiles = new HashMap<>();
460 private ZipFile getZipFile(String jdkVersion) throws IOException { in getZipFile()
461 ZipFile result = mZipFiles.get(jdkVersion); in getZipFile()
489 result = new ZipFile(classpath.toFile()); in getZipFile()
507 ZipFile zipFile = getZipFile(jdkVersion); in getClassNode()
[all …]
DMain.java53 import java.util.zip.ZipFile;
84 try (ZipFile zipFile = new ZipFile(jmod.toFile())) { in run()
125 try (ZipFile baseZip = new ZipFile(basePath.toFile()); in run()
126 ZipFile newZip = new ZipFile(newPath.toFile())) { in run()
604 try (ZipFile baseZip = new ZipFile(baseClasspath.toFile()); in run()
605 ZipFile newZip = new ZipFile(newClassPath.toFile())) { in run()
654 private static ClassNode readClassNode(ZipFile zipFile, ZipEntry entry) throws IOException { in readClassNode()
664 private static boolean isClassExposed(ZipFile zipFile, ClassNode node, in isClassExposed()
/libcore/ojluni/src/test/java/util/zip/ZipFile/
DZip64SizeTest.java23 package test.java.util.zip.ZipFile;
36 import java.util.zip.ZipFile;
87 try (ZipFile zip = new ZipFile(ZIP_FILE_NAME)) { in validateZipEntrySizes()
DTestCleaner.java31 package test.java.util.zip.ZipFile;
121 var zf = new ZipFile(zip); in openAndCloseZipFile()
127 Field fieldRes = ZipFile.class.getDeclaredField("res"); in openAndCloseZipFile()
/libcore/ojluni/src/main/java/java/util/jar/
DJarFile.java69 class JarFile extends ZipFile {
106 this(new File(name), true, ZipFile.OPEN_READ); in JarFile()
120 this(new File(name), verify, ZipFile.OPEN_READ); in JarFile()
133 this(file, true, ZipFile.OPEN_READ); in JarFile()
148 this(file, verify, ZipFile.OPEN_READ); in JarFile()
176 this(new File(name), enableZipPathValidator, verify, ZipFile.OPEN_READ); in JarFile()
/libcore/ojluni/src/test/java/util/zip/
DTestExtraTime.java45 import java.util.zip.ZipFile;
181 try (ZipFile zf = new ZipFile(zpath.toFile())) { in test0()
309 try (ZipFile zf = new ZipFile(zpath.toFile())) { in testTagOnlyHandling()
357 try (ZipFile zf = new ZipFile(zpath.toFile())) { in testNullMtime()
/libcore/ojluni/src/main/java/java/util/zip/
DZipFile.java98 public class ZipFile implements ZipConstants, Closeable { class
155 public ZipFile(String name) throws IOException { in ZipFile() method in ZipFile
184 public ZipFile(File file, int mode) throws IOException { in ZipFile() method in ZipFile
200 public ZipFile(File file) throws ZipException, IOException { in ZipFile() method in ZipFile
237 public ZipFile(File file, int mode, Charset charset) throws IOException in ZipFile() method in ZipFile
244 public ZipFile(File file, int mode, boolean enableZipPathValidator) throws IOException { in ZipFile() method in ZipFile
252 public ZipFile(File file, int mode, Charset charset, boolean enableZipPathValidator) in ZipFile() method in ZipFile
314 public ZipFile(String name, Charset charset) throws IOException in ZipFile() method in ZipFile
335 public ZipFile(File file, Charset charset) throws IOException in ZipFile() method in ZipFile
540 synchronized (ZipFile.this) { in hasNext()
[all …]
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
DURLJarFile.java35 import java.util.zip.ZipFile;
89 super(file, true, ZipFile.OPEN_READ | ZipFile.OPEN_DELETE); in URLJarFile()
/libcore/tools/non-cts-json-generator/src/libcore/tools/generator/noncts/
DMain.java47 import java.util.zip.ZipFile;
153 try (ZipFile zipFile = new ZipFile(jarFile)) { in parse()
175 private static ClassNode parseClass(ZipFile zipFile, ZipEntry zipEntry) throws IOException { in parseClass()

12