Include original file size in zipfile.

This commit is contained in:
Pavol Zibrita 2011-09-26 00:55:46 +02:00
parent e8733b886c
commit 09a8cdfaf7

View file

@ -629,7 +629,9 @@ public class IndexBatchCreator {
try {
ZipOutputStream zout = new ZipOutputStream(new FileOutputStream(zFile));
zout.setLevel(9);
zout.putNextEntry(new ZipEntry(fileName));
ZipEntry zEntry = new ZipEntry(fileName);
zEntry.setSize(f.length());
zout.putNextEntry(zEntry);
FileInputStream is = new FileInputStream(f);
byte[] BUFFER = new byte[8192];
int read = 0;