Code examples for ZipEntry

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
116:	Assert.assertNotNull("Report entry " + fileName + " missing from JDR report " + reportZip.getName(), entry); 
117:	Assert.assertTrue("Report entry " + fileName + " was empty or could not be determined", entry.getSize() > 0); 
Full Snippet Info
8
CodeRank
55:	ZipEntry ze = new ZipEntry("B7050028.class"); 
56:	ze.setMethod(ZipEntry.STORED); 
57:	ze.setSize(len); 
-
60:	ze.setCrc(crc.getValue()); 
Full Snippet Info
7
CodeRank
167:	out.putNextEntry(new ZipEntry("proguard_no_result")); 
Full Snippet Info
7
CodeRank
44:	ZipEntry zipEntry = new ZipEntry(name!=null?name: UUID.randomUUID().toString()); 
45:	zipEntry.setMethod(ZipOutputStream.STORED); 
-
47:	zipEntry.setSize(dataBuffer.length); 
-
50:	zipEntry.setCrc(crc32.getValue()); 
-
53:	zip.putArchiveEntry(new ZipArchiveEntry(zipEntry)); 
Full Snippet Info
7
CodeRank
77:	this.comment = zipEntry.getComment(); 
-
80:	this.size = zipEntry.getSize(); 
81:	this.crc32 = zipEntry.getCrc(); 
82:	this.time = zipEntry.getTime(); 
-
84:	final int method = zipEntry.getMethod(); 
Full Snippet Info
7
CodeRank
72:	this.comment = zipEntry.getComment(); 
73:	this.name = zipEntry.getName(); 
-
75:	this.size = zipEntry.getSize(); 
76:	this.time = zipEntry.getTime(); 
Full Snippet Info
7
CodeRank
94:	zos.putNextEntry(new ZipEntry(entryName)); 
Full Snippet Info
7
CodeRank
371:	ZipEntry ze = new ZipEntry(resolvedPartUri); 
372:	ze.setMethod(ZipOutputStream.STORED); 
-
375:	ze.setSize(bytes.length); 
376:	ze.setCompressedSize(bytes.length); 
-
380:	ze.setCrc(crc.getValue()); 
Full Snippet Info
7
CodeRank
86:	this.entryName = IOUtils.getInstance().getFileName(zipEntry.getName()); 
87:	this.comment = zipEntry.getComment(); 
88:	this.size = zipEntry.getSize(); 
89:	this.time = zipEntry.getTime(); 
Full Snippet Info
7
CodeRank
100:	disposition.setFilename(entry.getName()); 
-
102:	setSize(entry.getSize()); 
103:	setModificationDate(new Date(entry.getTime())); 
Full Snippet Info
6
CodeRank
153:	= new ZipEntry("xl/worksheets/sheet1.xml"); 
-
168:	theEntry.setSize(b.length); 
169:	theEntry.setCompressedSize(-1); 
170:	theEntry.setMethod(ZipEntry.DEFLATED); 
Full Snippet Info
6
CodeRank
89:	this.comment = zipEntry.getComment(); 
90:	this.size = zipEntry.getSize(); 
91:	this.time = zipEntry.getTime(); 
-
93:	this.entryName = IOUtils.getInstance().getFileName(zipEntry.getName()); 
Full Snippet Info
7
CodeRank
159:	ZipEntry ze = new ZipEntry("test"); 
-
163:	ze.setCrc(tempCrc.getValue()); 
164:	ze.setSize(new String(data).length()); 
-
168:	long csize = ze.getCompressedSize(); 
Full Snippet Info
6
CodeRank
295:	ZipEntry ze = new ZipEntry("okay1"); 
296:	ze.setMethod(ZipEntry.STORED); 
297:	ze.setCrc(crc.getValue()); 
-
299:	assertEquals(-1, ze.getSize()); 
300:	assertEquals(-1, ze.getCompressedSize()); 
-
302:	ze.setCompressedSize(0); 
-
304:	assertEquals(-1, ze.getSize()); 
305:	assertEquals(0, ze.getCompressedSize()); 
-
309:	assertEquals(0, ze.getSize()); 
310:	assertEquals(0, ze.getCompressedSize()); 
Full Snippet Info
6
CodeRank
68:	jstream.putNextEntry(new ZipEntry("foobaz.txt")); 
Full Snippet Info
6
CodeRank
72:	this.comment = zipEntry.getComment(); 
73:	this.name = zipEntry.getName(); 
-
75:	this.size = zipEntry.getSize(); 
76:	this.time = zipEntry.getTime(); 
Full Snippet Info
6
CodeRank
81:	long crc = ze.getCrc(); 
Full Snippet Info
6
CodeRank
77:	this.comment = zipEntry.getComment(); 
-
80:	this.size = zipEntry.getSize(); 
81:	this.crc32 = zipEntry.getCrc(); 
82:	this.time = zipEntry.getTime(); 
-
84:	final int method = zipEntry.getMethod(); 
Full Snippet Info
6
CodeRank
231:	log.debug("entry: " + entry.getName() + " size: " + entry.getSize()); 
232:	if (entry.isDirectory()) { 
233:	IOUtil.mkDirs(node, makeValidJCRPath(entry.getName(), false), getCollectionNodeType()); 
-
239:	ImportContext entryContext = new ZipEntryImportContext(context, entry, bin, node); 
Full Snippet Info
6
CodeRank
128:	ZipEntry entry = new ZipEntry("resource.txt"); 
Full Snippet Info
6
CodeRank