void (JBZipEntry entry) { if (entry.getMethod() == -1) { entry.setMethod(method); } if (entry.getTime() == -1) { entry.setTime(System.currentTimeMillis()); } if (myFile.isZip64()) { // will be overwritten after offset is known Zip64ExtraField field = new Zip64ExtraField(new ZipUInt64(entry.getSize()), new ZipUInt64(entry.getCompressedSize()), new ZipUInt64(0)); entry.addExtra(field); } }