Home
last modified time | relevance | path

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

123456789

/external/python/cpython2/Lib/test/
Dtest_zipfile.py55 with zipfile.ZipFile(f, "w", compression) as zipfp:
64 with zipfile.ZipFile(f, "r", compression) as zipfp:
126 with zipfile.ZipFile(f, "r", compression) as zipfp:
152 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED) as zipfp:
158 with zipfile.ZipFile(TESTFN2, "r") as zipfp:
174 with zipfile.ZipFile(f, "r", compression) as zipfp:
193 with zipfile.ZipFile(f, 'w', zipfile.ZIP_STORED) as zipfp:
197 with zipfile.ZipFile(f, 'r') as zipfp:
208 with zipfile.ZipFile(f, "r") as zipfp:
228 with zipfile.ZipFile(f, "r") as zipfp:
[all …]
Dtest_zipfile64.py48 zipfp = zipfile.ZipFile(f, "w", compression, allowZip64=True)
67 zipfp = zipfile.ZipFile(f, "r", compression)
106 zipf = zipfile.ZipFile(TESTFN, mode="w", allowZip64=True)
114 zipf2 = zipfile.ZipFile(TESTFN, mode="r")
121 zipf = zipfile.ZipFile(TESTFN, mode="w", allowZip64=False)
132 zipf = zipfile.ZipFile(TESTFN, mode="a", allowZip64=False)
140 zipf = zipfile.ZipFile(TESTFN, mode="a", allowZip64=True)
149 zipf2 = zipfile.ZipFile(TESTFN, mode="r")
/external/python/cpython3/Lib/test/
Dtest_zipfile.py61 with zipfile.ZipFile(f, "w", **kwargs) as zipfp:
73 with zipfile.ZipFile(f, "r", compression) as zipfp:
131 with zipfile.ZipFile(f, "r", compression) as zipfp:
158 with zipfile.ZipFile(path, "r", self.compression) as zipfp:
165 with zipfile.ZipFile(f, "r", compression) as zipfp:
184 with zipfile.ZipFile(f, "r") as zipfp, \
203 with zipfile.ZipFile(f, "r") as zipfp, \
223 with zipfile.ZipFile(f, "r") as zipfp, \
248 with zipfile.ZipFile(f, "r") as zipfp:
262 with zipfile.ZipFile(f, "r") as zipfp:
[all …]
Dtest_zipfile64.py39 with zipfile.ZipFile(f, "w", compression) as zipfp:
57 with zipfile.ZipFile(f, "r", compression) as zipfp:
95 with zipfile.ZipFile(TESTFN, mode="w", allowZip64=True) as zipf:
102 with zipfile.ZipFile(TESTFN, mode="r") as zipf2:
109 with zipfile.ZipFile(TESTFN, mode="w", allowZip64=False) as zipf:
119 with zipfile.ZipFile(TESTFN, mode="a", allowZip64=False) as zipf:
126 with zipfile.ZipFile(TESTFN, mode="a", allowZip64=True) as zipf:
134 with zipfile.ZipFile(TESTFN, mode="r") as zipf2:
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/
DZipFileTest.java50 private ZipFile zf = null;
54 ZipFile.closeQuietly(zf); in tearDown()
93 zf = new ZipFile(new SeekableInMemoryByteChannel(data), ZipEncodingHelper.UTF8); in testCDOrderInMemory()
180 zf = new ZipFile(f); in testReadingOfStoredEntry()
204 zf = new ZipFile(archive); in testWinzipBackSlashWorkaround()
217 zf = new ZipFile(archive); in testSkipsPK00Prefix()
246 zf = new ZipFile(archive); in testUnixSymlinkSampleFile()
268 zf = new ZipFile(archive); in testDuplicateEntry()
288 zf = new ZipFile(archive); in testExcessDataInZip64ExtraField()
297 zf = new ZipFile(getFile("SHRUNK.ZIP")); in testUnshrinking()
[all …]
DUTF8ZipFilesTest.java100 ZipFile zf = null; in testRead7ZipArchive()
102 zf = new ZipFile(archive, CP437, false); in testRead7ZipArchive()
107 ZipFile.closeQuietly(zf); in testRead7ZipArchive()
135 ZipFile zf = null; in testReadWinZipArchive()
137 zf = new ZipFile(archive, null, true); in testReadWinZipArchive()
142 ZipFile.closeQuietly(zf); in testReadWinZipArchive()
146 private void assertCanRead(final ZipFile zf, final String fileName) throws IOException { in assertCanRead()
200 ZipFile zf = null; in testZipArchiveInputStreamReadsUnicodeFields()
203 zf = new ZipFile(file, CharsetNames.US_ASCII, true); in testZipArchiveInputStreamReadsUnicodeFields()
208 ZipFile.closeQuietly(zf); in testZipArchiveInputStreamReadsUnicodeFields()
[all …]
DEncryptedArchiveTest.java36 ZipFile zf = null; in testReadPasswordEncryptedEntryViaZipFile()
38 zf = new ZipFile(file); in testReadPasswordEncryptedEntryViaZipFile()
51 ZipFile.closeQuietly(zf); in testReadPasswordEncryptedEntryViaZipFile()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/
DZipTestCase.java45 import org.apache.commons.compress.archivers.zip.ZipFile;
205 final ZipFile moby = new ZipFile(getFile("moby.zip")); in testSupportedCompressionMethod()
293 ZipFile zf = null; in testDirectoryEntryFromFile()
304 zf = new ZipFile(archive); in testDirectoryEntryFromFile()
314 ZipFile.closeQuietly(zf); in testDirectoryEntryFromFile()
329 ZipFile zf = null; in testExplicitDirectoryEntry()
341 zf = new ZipFile(archive); in testExplicitDirectoryEntry()
350 ZipFile.closeQuietly(zf); in testExplicitDirectoryEntry()
387 try (final ZipFile zf1 = new ZipFile(a1); final ZipFile zf2 = new ZipFile(a2)) { in testCopyRawEntriesFromFile()
418 try (final ZipFile zf1 = new ZipFile(a1)) { in testCopyRawZip64EntryFromFile()
[all …]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/
DZipDexContainer.java53 import java.util.zip.ZipFile;
80 ZipFile zipFile = getZipFile(); in getDexEntryNames()
108 ZipFile zipFile = getZipFile(); in getEntry()
122 ZipFile zipFile = null; in isZipFile()
159 … protected boolean isDex(@Nonnull ZipFile zipFile, @Nonnull ZipEntry zipEntry) throws IOException { in isDex()
175 protected ZipFile getZipFile() throws IOException { in getZipFile()
177 return new ZipFile(zipFilePath); in getZipFile()
184 …protected ZipDexFile loadEntry(@Nonnull ZipFile zipFile, @Nonnull ZipEntry zipEntry) throws IOExce… in loadEntry()
/external/jarjar/src/main/com/tonicsystems/jarjar/util/
DClassPathIterator.java41 private List<ZipFile> zips = new ArrayList<ZipFile>();
90 for (ZipFile zip : zips) { in close()
119 ZipFile zip = new JarFile(file); in advance()
123 ZipFile zip = new ZipFile(file); in advance()
144 private final ZipFile zip;
147 ZipIterator(ZipFile zip) { in ZipIterator()
DIoUtil.java25 import java.util.zip.ZipFile;
64 final ZipFile inputZip = new ZipFile(inputFile); in copyZipWithoutEmptyDirectories()
/external/python/cpython2/Doc/library/
Dzipfile.rst40 .. class:: ZipFile
56 methods of :class:`ZipFile` objects. Most users of the :mod:`zipfile` module
96 ZipFile Objects
100 .. class:: ZipFile(file[, mode[, compression[, allowZip64]]])
130 ZipFile is also a context manager and therefore supports the
134 with ZipFile('spam.zip', 'w') as myzip:
138 Added the ability to use :class:`ZipFile` as a context manager.
141 .. method:: ZipFile.close()
147 .. method:: ZipFile.getinfo(name)
154 .. method:: ZipFile.infolist()
[all …]
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DZipArchiveHandle.java3 import java.util.zip.ZipFile;
6 final ZipFile zipFile;
8 public ZipArchiveHandle(ZipFile zipFile) { in ZipArchiveHandle()
DFileMap.java11 import java.util.zip.ZipFile;
15 private ZipFile zipFile;
127 public boolean createFromZip(String origFileName, ZipFile zipFile, ZipEntry entry, int length, in createFromZip()
184 long guessOffsetFor(ZipFile zipFile, ZipEntry zipEntry) { in guessOffsetFor()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/examples/
DExpanderTest.java43 import org.apache.commons.compress.archivers.zip.ZipFile;
109 try (ZipFile f = new ZipFile(archive)) { in zipFileVersion()
118 try (ZipFile f = new ZipFile(archive)) { in fileCantEscapeViaAbsolutePath()
129 try (ZipFile f = new ZipFile(archive)) { in fileCantEscapeDoubleDotPath()
146 try (ZipFile f = new ZipFile(archive)) { in fileCantEscapeDoubleDotPathWithSimilarSibling()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/jar/
DJarArchiveOutputStreamTest.java32 import org.apache.commons.compress.archivers.zip.ZipFile;
41 ZipFile zf = null; in testJarMarker()
53 zf = new ZipFile(testArchive); in testJarMarker()
70 ZipFile.closeQuietly(zf); in testJarMarker()
/external/desugar/test/java/com/google/devtools/build/android/desugar/
DBug62456849TestDataGenerator.java28 import java.util.zip.ZipFile;
53 try (ZipFile inputZip = new ZipFile(inputJar.toFile()); in main()
79 private static byte[] readEntry(ZipFile file, ZipEntry entry) throws IOException { in readEntry()
85 private static byte[] convertClass(ZipFile file, ZipEntry entry) throws IOException { in convertClass()
/external/python/cpython3/Doc/library/
Dzipfile.rst48 .. class:: ZipFile
74 methods of :class:`ZipFile` objects. Most users of the :mod:`zipfile` module
138 ZipFile Objects
142 .. class:: ZipFile(file, mode='r', compression=ZIP_STORED, allowZip64=True, \
191 ZipFile is also a context manager and therefore supports the
195 with ZipFile('spam.zip', 'w') as myzip:
199 Added the ability to use :class:`ZipFile` as a context manager.
225 .. method:: ZipFile.close()
231 .. method:: ZipFile.getinfo(name)
238 .. method:: ZipFile.infolist()
[all …]
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/deflate64/
DDeflate64BugsTest.java26 import org.apache.commons.compress.archivers.zip.ZipFile;
33 … try (ZipFile zfile = new ZipFile(getFile("COMPRESS-380/COMPRESS-380-readbeyondmemory.zip"))) { in readBeyondMemoryException()
/external/icu/tools/
Dziputil.py25 from zipfile import ZipFile
35 with ZipFile(path_a, 'r') as zip_a:
38 with ZipFile(path_b, 'r') as zip_b:
/external/pigweed/pw_build/py/
Dzip_test.py93 with zipfile.ZipFile(out_filename, 'r') as zip_file:
112 with zipfile.ZipFile(out_filename, 'r') as zip_file:
136 with zipfile.ZipFile(out_filename, 'r') as zip_file:
156 with zipfile.ZipFile(out_filename, 'r') as zip_file:
176 with zipfile.ZipFile(out_filename, 'r') as zip_file:
201 with zipfile.ZipFile(out_filename, 'r') as zip_file:
/external/kotlinx.coroutines/buildSrc/src/main/kotlin/
DUnpackAar.kt10 import java.util.zip.ZipFile in <lambda>()
19 ZipFile(inputArtifact.get().asFile).use { zip -> in <lambda>()
28 private fun ZipFile.unzip(entry: ZipEntry, output: File) { in ZipFile() method
/external/desugar/java/com/google/devtools/build/android/desugar/io/
DZipInputFileProvider.java23 import java.util.zip.ZipFile;
30 private final ZipFile zipFile;
34 this.zipFile = new ZipFile(root.toFile()); in ZipInputFileProvider()
/external/caliper/caliper/src/test/resources/com/google/caliper/bridge/
Djdk7-compilation.txt23 487 18 n java.util.zip.ZipFile::getEntryBytes (0 bytes) (static)
24 524 19 b java.util.zip.ZipFile::ensureOpen (37 bytes)
25 525 20 b java.util.zip.ZipFile::access$400 (5 bytes)
26 527 21 b java.util.zip.ZipFile::access$200 (5 bytes)
27 527 22 b java.util.zip.ZipFile::access$300 (5 bytes)
38 588 33 n java.util.zip.ZipFile::getEntrySize (0 bytes) (static)
40 589 35 n java.util.zip.ZipFile::getEntryCSize (0 bytes) (static)
41 589 36 n java.util.zip.ZipFile::getEntryMethod (0 bytes) (static)
42 589 37 n java.util.zip.ZipFile::freeEntry (0 bytes) (static)
43 590 38 b java.util.zip.ZipFile::getZipEntry (245 bytes)
[all …]
/external/rust/crates/zip/src/
Dread.rs134 pub struct ZipFile<'a> { struct
419 ) -> ZipResult<Result<ZipFile<'a>, InvalidPassword>> { in by_name_decrypt()
424 pub fn by_name<'a>(&'a mut self, name: &str) -> ZipResult<ZipFile<'a>> { in by_name()
432 ) -> ZipResult<Result<ZipFile<'a>, InvalidPassword>> { in by_name_with_optional_password()
447 ) -> ZipResult<Result<ZipFile<'a>, InvalidPassword>> { in by_index_decrypt()
452 pub fn by_index<'a>(&'a mut self, file_number: usize) -> ZipResult<ZipFile<'a>> { in by_index()
459 pub fn by_index_raw<'a>(&'a mut self, file_number: usize) -> ZipResult<ZipFile<'a>> { in by_index_raw()
465 Ok(ZipFile { in by_index_raw()
477 ) -> ZipResult<Result<ZipFile<'a>, InvalidPassword>> { in by_index_with_optional_password()
495 Ok(Ok(crypto_reader)) => Ok(Ok(ZipFile { in by_index_with_optional_password()
[all …]

123456789