1 | static void zip_addTextFile(ZipOutputStream outZip, S name, S text) ctex { |
2 | if (text == null) ret; |
3 | byte[] utf8 = toUtf8(text); |
4 | ZipEntry e = new(name); |
5 | e.setSize(l(utf8)); |
6 | outZip.putNextEntry(e); |
7 | outZip.write(utf8, 0, l(utf8)); |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006539 |
Snippet name: | zip_addTextFile |
Eternal ID of this version: | #1006539/3 |
Text MD5: | bdece8d987090efccbf38711e11078a6 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-12-31 21:16:10 |
Source code size: | 246 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 534 / 568 |
Version history: | 2 change(s) |
Referenced in: | [show references] |