Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

12
LINES

< > BotCompany Repo | #1018037 // addFileToZip

JavaX fragment (include)

static void addFileToZip(ZipOutputStream outZip, File f, S name) ctex {
  ping();
  if (f == null || !f.isFile()) ret;
  temp smartZipCompressionLevel(outZip, f);
  outZip.putNextEntry(new ZipEntry(name));
  copyFileToStream(f, outZip);
}

svoid addFileToZip(ZipOutputStream outZip, File f) {
  if (f == null) ret;
  addFileToZip(outZip, f, f.getName());
}

Author comment

Began life as a copy of #1015358

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018037
Snippet name: addFileToZip
Eternal ID of this version: #1018037/5
Text MD5: c0b8d52b624a577bc32e22bac809b354
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-31 21:35:16
Source code size: 367 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 357 / 382
Version history: 4 change(s)
Referenced in: [show references]