205206207208209210211212213214215
zout.putNextEntry(entry); processStream(in, zout); } else { zout.putNextEntry(entry); } zout.closeEntry(); } catch (IOException e) { debug(e.getMessage()); } finally { if (in != null) { try {
out.putNextEntry(new org.apache.tools.zip.ZipEntry(fileNameList .get(i))); while ((len = in.read(buf)) > 0) { out.write(buf, 0, len); } out.closeEntry(); in.close(); } } out.close(); }