Searched refs:zipFile (Results 1 – 7 of 7) sorted by relevance
101 ZipFile zipFile = new ZipFile(fileName); in scanZip() local106 for (fileList = zipFile.entries(); fileList.hasMoreElements();) { in scanZip()113 zipFile.close(); in scanZip()124 ZipFile zipFile; in read2() local131 zipFile = new ZipFile(fileName); in read2()132 entry1 = zipFile.getEntry("file-1"); in read2()133 entry2 = zipFile.getEntry("file-2"); in read2()140 stream1 = zipFile.getInputStream(entry1); in read2()141 stream2 = zipFile.getInputStream(entry2); in read2()178 stream1 = zipFile.getInputStream(zipFile.getEntry("file-0")); in read2()[all …]
67 ZipFile zipFile = new ZipFile(f); in test_utf8FileNames() local69 assertNotNull(filename, zipFile.getEntry(filename)); in test_utf8FileNames()114 ZipFile zipFile = new ZipFile(f); in testMaxLengthName() local115 assertNotNull(zipFile.getEntry(maxLengthName)); in testMaxLengthName()116 zipFile.close(); in testMaxLengthName()141 ZipFile zipFile = new ZipFile(f); in testMaxLengthExtra() local142 assertEquals(maxLengthExtra.length, zipFile.getEntry("x").getExtra().length); in testMaxLengthExtra()143 zipFile.close(); in testMaxLengthExtra()168 ZipFile zipFile = new ZipFile(f); in testMaxLengthComment() local169 assertEquals(maxLengthComment, zipFile.getEntry("x").getComment()); in testMaxLengthComment()[all …]
55 ZipFile zipFile = new ZipFile(createZipFile(1, originalSize)); in testInflatingFilesRequiringZipRefill() local56 for (Enumeration<? extends ZipEntry> e = zipFile.entries(); e.hasMoreElements(); ) { in testInflatingFilesRequiringZipRefill()60 InputStream is = zipFile.getInputStream(zipEntry); in testInflatingFilesRequiringZipRefill()64 zipFile.close(); in testInflatingFilesRequiringZipRefill()155 File zipFile = createTemporaryZipFile(); in testStoredEntrySize() local156 writeBytes(zipFile, outBuffer); in testStoredEntrySize()158 ZipFile zip = new ZipFile(zipFile); in testStoredEntrySize()187 ZipFile zipFile = new ZipFile(f); in testZipFileWithLotsOfEntries() local189 for (Enumeration<? extends ZipEntry> e = zipFile.entries(); e.hasMoreElements(); ) { in testZipFileWithLotsOfEntries()194 zipFile.close(); in testZipFileWithLotsOfEntries()[all …]
56 ZipFile zipFile = new ZipFile(file); in timeUnbufferedRead() local57 ZipEntry entry = zipFile.getEntry("entry.data"); in timeUnbufferedRead()58 InputStream in = zipFile.getInputStream(entry); in timeUnbufferedRead()63 zipFile.close(); in timeUnbufferedRead()69 ZipFile zipFile = new ZipFile(file); in timeBufferedRead() local70 ZipEntry entry = zipFile.getEntry("entry.data"); in timeBufferedRead()71 InputStream in = new BufferedInputStream(zipFile.getInputStream(entry)); in timeBufferedRead()76 zipFile.close(); in timeBufferedRead()
321 static HashMap<String, byte[]> readMetaEntries(ZipFile zipFile, in readMetaEntries() argument324 List<ZipEntry> metaEntries = getMetaEntries(zipFile); in readMetaEntries()338 zipFile.getInputStream(entry))); in readMetaEntries()350 InputStream is = zipFile.getInputStream(entry); in readMetaEntries()425 private static List<ZipEntry> getMetaEntries(ZipFile zipFile) { in getMetaEntries() argument428 Enumeration<? extends ZipEntry> allEntries = zipFile.entries(); in getMetaEntries()
399 private ZipFile zipFile; field in DexPathList.Element431 zipFile = new ZipFile(zip); in maybeInit()440 zipFile = null; in maybeInit()460 if (zipFile == null || zipFile.getEntry(name) == null) { in findResource()
104 ZipFile zipFile = new ZipFile(file); in Dex() local105 ZipEntry entry = zipFile.getEntry(DexFormat.DEX_IN_JAR_NAME); in Dex()107 loadFrom(zipFile.getInputStream(entry)); in Dex()108 zipFile.close(); in Dex()