Home
last modified time | relevance | path

Searched refs:ZipArchiveEntry (Results 1 – 25 of 42) sorted by relevance

12

/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/
DZipArchiveEntryTest.java47 final ZipArchiveEntry ze = new ZipArchiveEntry("test/"); in testExtraFields()
101 final ZipArchiveEntry ze = new ZipArchiveEntry("test/"); in testExtraFieldMerging()
148 final ZipArchiveEntry ze = new ZipArchiveEntry("test/"); in testAddAsFirstExtraField()
177 ZipArchiveEntry ze = new ZipArchiveEntry("foo"); in testUnixMode()
191 ze = new ZipArchiveEntry("foo/"); in testUnixMode()
215 final ZipArchiveEntry entry = new ZipArchiveEntry("foo"); in testCompressionMethod()
241 final ZipArchiveEntry entry1 = new ZipArchiveEntry("foo"); in testNotEquals()
242 final ZipArchiveEntry entry2 = new ZipArchiveEntry("bar"); in testNotEquals()
252 final ZipArchiveEntry entry1 = new ZipArchiveEntry("foo"); in testNullCommentEqualsEmptyComment()
253 final ZipArchiveEntry entry2 = new ZipArchiveEntry("foo"); in testNullCommentEqualsEmptyComment()
[all …]
DZipFileTest.java60 final ArrayList<ZipArchiveEntry> l = Collections.list(zf.getEntries()); in testCDOrder()
94 final ArrayList<ZipArchiveEntry> l = Collections.list(zf.getEntries()); in testCDOrderInMemory()
123 final ArrayList<ZipArchiveEntry> l = Collections.list(zf.getEntriesInPhysicalOrder()); in testPhysicalOrder()
169 ZipArchiveEntry ze = new ZipArchiveEntry("foo"); in testReadingOfStoredEntry()
247 final Enumeration<ZipArchiveEntry> en = zf.getEntries(); in testUnixSymlinkSampleFile()
249 final ZipArchiveEntry zae = en.nextElement(); in testUnixSymlinkSampleFile()
270 final ZipArchiveEntry ze = zf.getEntry("test1.txt"); in testDuplicateEntry()
275 for (final ZipArchiveEntry entry : zf.getEntries("test1.txt")) { in testDuplicateEntry()
291 …final ZipArchiveEntry ze = zf.getEntry("src/main/java/org/apache/commons/compress/archivers/zip/Zi… in testExcessDataInZip64ExtraField()
298 ZipArchiveEntry test = zf.getEntry("TEST1.XML"); in testUnshrinking()
[all …]
DZipArchiveInputStreamTest.java53 ZipArchiveEntry zae = in.getNextZipEntry(); in winzipBackSlashWorkaround()
73 final ZipArchiveEntry zae = zf.getEntry("USD0558682-20080101.ZIP"); in properUseOfInflater()
75 ZipArchiveEntry innerEntry; in properUseOfInflater()
126 ZipArchiveEntry zae = in.getNextZipEntry(); in extractZipInputStream()
139 ZipArchiveEntry entry = in.getNextZipEntry(); in testUnshrinkEntry()
172 final ZipArchiveEntry ze = in.getNextZipEntry(); in testReadingOfFirstStoredEntry()
187 ZipArchiveEntry ze = in.getNextZipEntry(); in testMessageWithCorruptFileName()
202 final ZipArchiveEntry ze = in.getNextZipEntry(); in testUnzipBZip2CompressedEntry()
220 ZipArchiveEntry e = zin.getNextZipEntry(); in readDeflate64CompressedStream()
231 ZipArchiveEntry e = zin.getNextZipEntry(); in readDeflate64CompressedStreamWithDataDescriptor()
[all …]
DZip64SupportIT.java151 final ZipArchiveEntry zae = new ZipArchiveEntry("5GB_of_Zeros"); in write5GBZerosFile()
552 for (final Enumeration<ZipArchiveEntry> e =
555 final ZipArchiveEntry zae = e.nextElement();
601 final ZipArchiveEntry zae = new ZipArchiveEntry("0");
794 final ZipArchiveEntry zae = new ZipArchiveEntry("0");
854 final ZipArchiveEntry zae = new ZipArchiveEntry("0");
1051 final ZipArchiveEntry zae = new ZipArchiveEntry("0");
1107 final ZipArchiveEntry zae = new ZipArchiveEntry("0");
1287 final ZipArchiveEntry zae =
1288 new ZipArchiveEntry("0");
[all …]
DScatterZipOutputStreamTest.java53 final ZipArchiveEntry zab = new ZipArchiveEntry("b.txt"); in putArchiveEntry()
58 final ZipArchiveEntry zae = new ZipArchiveEntry("a.txt"); in putArchiveEntry()
70 final ZipArchiveEntry b_entry = zf.getEntries("b.txt").iterator().next(); in putArchiveEntry()
74 final ZipArchiveEntry a_entry = zf.getEntries("a.txt").iterator().next(); in putArchiveEntry()
DUTF8ZipFilesTest.java147 final ZipArchiveEntry entry = zf.getEntry(fileName); in assertCanRead()
234 assertRawNameOfAcsiiTxt((ZipArchiveEntry) zi.getNextEntry()); in testRawNameReadFromStream()
274 ZipArchiveEntry ze = new ZipArchiveEntry(OIL_BARREL_TXT); in createTestFile()
291 ze = new ZipArchiveEntry(EURO_FOR_DOLLAR_TXT); in createTestFile()
308 ze = new ZipArchiveEntry(ASCII_TXT); in createTestFile()
342 final Enumeration<ZipArchiveEntry> e = zf.getEntries(); in testFile()
344 final ZipArchiveEntry ze = e.nextElement(); in testFile()
361 private static UnicodePathExtraField findUniCodePath(final ZipArchiveEntry ze) { in findUniCodePath()
366 private static void assertUnicodeName(final ZipArchiveEntry ze, in assertUnicodeName()
397 private static void assertRawNameOfAcsiiTxt(final ZipArchiveEntry ze) { in assertRawNameOfAcsiiTxt()
DLister.java64 final ZipArchiveEntry ze = (ZipArchiveEntry) entry; in main()
73 for (final Enumeration<ZipArchiveEntry> entries = zf.getEntries(); in main()
75 final ZipArchiveEntry ze = entries.nextElement(); in main()
87 private static void list(final ZipArchiveEntry entry) { in list()
91 private static void extract(final String dir, final ZipArchiveEntry entry, in extract()
DParallelScatterZipCreatorTest.java100 final Enumeration<ZipArchiveEntry> entriesInPhysicalOrder = zf.getEntriesInPhysicalOrder(); in removeEntriesFoundInZipFile()
102 final ZipArchiveEntry zipArchiveEntry = entriesInPhysicalOrder.nextElement(); in removeEntriesFoundInZipFile()
115 final ZipArchiveEntry za = createZipArchiveEntry(entries, i, payloadBytes); in writeEntries()
141 final ZipArchiveEntry za = createZipArchiveEntry(entries, i, payloadBytes); in writeEntriesAsCallable()
166 …private ZipArchiveEntry createZipArchiveEntry(final Map<String, byte[]> entries, final int i, fina… in createZipArchiveEntry()
167 final ZipArchiveEntry za = new ZipArchiveEntry( "file" + i); in createZipArchiveEntry()
DScatterSampleTest.java45 final ZipArchiveEntry archiveEntry = new ZipArchiveEntry("test1.xml"); in createFile()
62 final ZipArchiveEntry archiveEntry1 = zf.getEntries().nextElement(); in checkFile()
DDataDescriptorTest.java56 zos.putArchiveEntry(new ZipArchiveEntry("test1.txt")); in writesDataDescriptorForDeflatedEntryOnUnseekableOutput()
96 zos.putArchiveEntry(new ZipArchiveEntry("test1.txt")); in doesntWriteDataDescriptorForDeflatedEntryOnSeekableOutput()
138 zos.putArchiveEntry(new ZipArchiveEntry("test1.txt")); in doesntWriteDataDescriptorWhenAddingRawEntries()
149 ZipArchiveEntry zae; in doesntWriteDataDescriptorWhenAddingRawEntries()
DZipClassCoverageTest.java40 ZipArchiveEntry ze = new ZipArchiveEntry("hello"); in testMessageException()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/
DZipTestCase.java41 import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
71 os.putArchiveEntry(new ZipArchiveEntry("testdata/test1.xml")); in testZipArchiveCreation()
75 os.putArchiveEntry(new ZipArchiveEntry("testdata/test2.xml")); in testZipArchiveCreation()
94 ZipArchiveEntry entry = null; in testZipArchiveCreation()
95 while((entry = (ZipArchiveEntry)in.getNextEntry()) != null) { in testZipArchiveCreation()
133 os.putArchiveEntry(new ZipArchiveEntry("testdata/test1.xml")); in testZipArchiveCreationInMemory()
137 os.putArchiveEntry(new ZipArchiveEntry("testdata/test2.xml")); in testZipArchiveCreationInMemory()
148 ZipArchiveEntry entry; in testZipArchiveCreationInMemory()
149 while((entry = (ZipArchiveEntry)in.getNextEntry()) != null) { in testZipArchiveCreationInMemory()
169 final ZipArchiveEntry entry = (ZipArchiveEntry) in.getNextEntry(); in testZipUnarchive()
[all …]
DJarTestCase.java28 import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
45 os.putArchiveEntry(new ZipArchiveEntry("testdata/test1.xml")); in testJarArchiveCreation()
49 os.putArchiveEntry(new ZipArchiveEntry("testdata/test2.xml")); in testJarArchiveCreation()
63 ZipArchiveEntry entry = (ZipArchiveEntry)in.getNextEntry(); in testJarUnarchive()
70 entry = (ZipArchiveEntry)in.getNextEntry(); in testJarUnarchive()
77 entry = (ZipArchiveEntry)in.getNextEntry(); in testJarUnarchive()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/
DZipFile.java102 private final List<ZipArchiveEntry> entries =
108 private final Map<String, LinkedList<ZipArchiveEntry>> nameMap =
294 final Map<ZipArchiveEntry, NameAndComment> entriesWithoutUTF8Flag = in ZipFile()
346 public Enumeration<ZipArchiveEntry> getEntries() { in getEntries()
360 public Enumeration<ZipArchiveEntry> getEntriesInPhysicalOrder() { in getEntriesInPhysicalOrder()
361 final ZipArchiveEntry[] allEntries = entries.toArray(new ZipArchiveEntry[entries.size()]); in getEntriesInPhysicalOrder()
378 public ZipArchiveEntry getEntry(final String name) { in getEntry()
379 final LinkedList<ZipArchiveEntry> entriesOfThatName = nameMap.get(name); in getEntry()
392 public Iterable<ZipArchiveEntry> getEntries(final String name) { in getEntries()
393 final List<ZipArchiveEntry> entriesOfThatName = nameMap.get(name); in getEntries()
[all …]
DZipArchiveOutputStream.java177 private final List<ZipArchiveEntry> entries =
207 private final Map<ZipArchiveEntry, EntryMetaData> metaData =
486 for (final ZipArchiveEntry ze : entries) { in writeCentralDirectoryInChunks()
575 public void addRawArchiveEntry(final ZipArchiveEntry entry, final InputStream rawStream) in addRawArchiveEntry()
577 final ZipArchiveEntry ae = new ZipArchiveEntry(entry); in addRawArchiveEntry()
584 final boolean is2PhaseSource = ae.getCrc() != ZipArchiveEntry.CRC_UNKNOWN in addRawArchiveEntry()
658 private boolean isZip64Required(final ZipArchiveEntry entry1, final Zip64Mode requestedMode) { in isZip64Required()
662 private boolean isTooLageForZip32(final ZipArchiveEntry zipArchiveEntry){ in isTooLageForZip32()
751 entry = new CurrentEntry((ZipArchiveEntry) archiveEntry); in putArchiveEntry()
787 writeLocalFileHeader((ZipArchiveEntry) archiveEntry, phased); in putArchiveEntry()
[all …]
DZipArchiveEntryRequest.java35 private final ZipArchiveEntry zipArchiveEntry;
40 …private ZipArchiveEntryRequest(final ZipArchiveEntry zipArchiveEntry, final InputStreamSupplier pa… in ZipArchiveEntryRequest()
53 …public static ZipArchiveEntryRequest createZipArchiveEntryRequest(final ZipArchiveEntry zipArchive… in createZipArchiveEntryRequest()
78 ZipArchiveEntry getZipArchiveEntry() { in getZipArchiveEntry()
DUnsupportedZipFeatureException.java31 private transient final ZipArchiveEntry entry;
40 final ZipArchiveEntry entry) { in UnsupportedZipFeatureException()
55 final ZipArchiveEntry entry) { in UnsupportedZipFeatureException()
87 public ZipArchiveEntry getEntry() { in getEntry()
DZipArchiveEntry.java51 public class ZipArchiveEntry extends java.util.zip.ZipEntry class
157 public ZipArchiveEntry(final String name) { in ZipArchiveEntry() method in ZipArchiveEntry
171 public ZipArchiveEntry(final java.util.zip.ZipEntry entry) throws ZipException { in ZipArchiveEntry() method in ZipArchiveEntry
196 public ZipArchiveEntry(final ZipArchiveEntry entry) throws ZipException { in ZipArchiveEntry() method in ZipArchiveEntry
209 protected ZipArchiveEntry() { in ZipArchiveEntry() method in ZipArchiveEntry
224 public ZipArchiveEntry(final File inputFile, final String entryName) { in ZipArchiveEntry() method in ZipArchiveEntry
240 final ZipArchiveEntry e = (ZipArchiveEntry) super.clone(); in clone()
890 final ZipArchiveEntry other = (ZipArchiveEntry) obj; in equals()
DZipUtil.java232 static void setNameAndCommentFromExtraFields(final ZipArchiveEntry ze, in setNameAndCommentFromExtraFields()
241 ze.setNameSource(ZipArchiveEntry.NameSource.UNICODE_EXTRA_FIELD); in setNameAndCommentFromExtraFields()
251 ze.setCommentSource(ZipArchiveEntry.CommentSource.UNICODE_EXTRA_FIELD); in setNameAndCommentFromExtraFields()
310 static boolean canHandleEntryData(final ZipArchiveEntry entry) { in canHandleEntryData()
320 private static boolean supportsEncryptionOf(final ZipArchiveEntry entry) { in supportsEncryptionOf()
330 private static boolean supportsMethodOf(final ZipArchiveEntry entry) { in supportsMethodOf()
343 static void checkRequestedFeatures(final ZipArchiveEntry ze) in checkRequestedFeatures()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/jar/
DJarArchiveOutputStreamTest.java30 import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
45 out.putArchiveEntry(new ZipArchiveEntry("foo/")); in testJarMarker()
47 out.putArchiveEntry(new ZipArchiveEntry("bar/")); in testJarMarker()
54 ZipArchiveEntry ze = zf.getEntry("foo/"); in testJarMarker()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/deflate64/
DDeflate64BugsTest.java25 import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
34 Enumeration<ZipArchiveEntry> entries = zfile.getEntries(); in readBeyondMemoryException()
36 ZipArchiveEntry e = entries.nextElement(); in readBeyondMemoryException()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/jar/
DJarArchiveEntry.java27 import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
33 public class JarArchiveEntry extends ZipArchiveEntry {
47 public JarArchiveEntry(final ZipArchiveEntry entry) throws ZipException { in JarArchiveEntry()
DJarArchiveOutputStream.java26 import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
60 ((ZipArchiveEntry)ze).addAsFirstExtraField(JarMarker.getInstance()); in putArchiveEntry()
DJarArchiveInputStream.java25 import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
56 final ZipArchiveEntry entry = getNextZipEntry(); in getNextJarEntry()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/examples/
DExpander.java38 import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
186 final Enumeration<ZipArchiveEntry> entries = archive.getEntries(); in expand()
190 ZipArchiveEntry next = entries.hasMoreElements() ? entries.nextElement() : null; in expand()
199 try (InputStream in = archive.getInputStream((ZipArchiveEntry) entry)) { in expand()

12