/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/ |
D | ZipArchiveEntryTest.java | 47 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 …]
|
D | ZipFileTest.java | 60 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 …]
|
D | ZipArchiveInputStreamTest.java | 53 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 …]
|
D | Zip64SupportIT.java | 151 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 …]
|
D | ScatterZipOutputStreamTest.java | 53 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()
|
D | UTF8ZipFilesTest.java | 147 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()
|
D | Lister.java | 64 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()
|
D | ParallelScatterZipCreatorTest.java | 100 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()
|
D | ScatterSampleTest.java | 45 final ZipArchiveEntry archiveEntry = new ZipArchiveEntry("test1.xml"); in createFile() 62 final ZipArchiveEntry archiveEntry1 = zf.getEntries().nextElement(); in checkFile()
|
D | DataDescriptorTest.java | 56 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()
|
D | ZipClassCoverageTest.java | 40 ZipArchiveEntry ze = new ZipArchiveEntry("hello"); in testMessageException()
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/ |
D | ZipTestCase.java | 41 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 …]
|
D | JarTestCase.java | 28 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/ |
D | ZipFile.java | 102 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 …]
|
D | ZipArchiveOutputStream.java | 177 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 …]
|
D | ZipArchiveEntryRequest.java | 35 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()
|
D | UnsupportedZipFeatureException.java | 31 private transient final ZipArchiveEntry entry; 40 final ZipArchiveEntry entry) { in UnsupportedZipFeatureException() 55 final ZipArchiveEntry entry) { in UnsupportedZipFeatureException() 87 public ZipArchiveEntry getEntry() { in getEntry()
|
D | ZipArchiveEntry.java | 51 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()
|
D | ZipUtil.java | 232 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/ |
D | JarArchiveOutputStreamTest.java | 30 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/ |
D | Deflate64BugsTest.java | 25 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/ |
D | JarArchiveEntry.java | 27 import org.apache.commons.compress.archivers.zip.ZipArchiveEntry; 33 public class JarArchiveEntry extends ZipArchiveEntry { 47 public JarArchiveEntry(final ZipArchiveEntry entry) throws ZipException { in JarArchiveEntry()
|
D | JarArchiveOutputStream.java | 26 import org.apache.commons.compress.archivers.zip.ZipArchiveEntry; 60 ((ZipArchiveEntry)ze).addAsFirstExtraField(JarMarker.getInstance()); in putArchiveEntry()
|
D | JarArchiveInputStream.java | 25 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/ |
D | Expander.java | 38 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()
|