Libraryless. Click here for Pure Java version (4679L/26K).
1 | svoid zip2zip(File inZip, ZipOutputStream outZip) ctex { |
2 | temp ZipFile zipFile = new(inZip); |
3 | for (e : enumerationToIterator(zipFile.entries())) { |
4 | print("Copying " + e.getName()); |
5 | ZipEntry e2 = new(e.getName()); |
6 | e2.setSize(e.getSize()); |
7 | outZip.putNextEntry(e2); |
8 | copyStreamAndCloseInput(zipFile.getInputStream(e), outZip); |
9 | } |
10 | } |
11 | |
12 | svoid zip2zip(File inZip, ZipOutputStream outZip, IPred<S> predicate) { |
13 | zip2zip_withPredicate(inZip, outZip, predicate); |
14 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1001173 |
Snippet name: | zip2zip |
Eternal ID of this version: | #1001173/10 |
Text MD5: | 12845396ea7bb2fcaa5bdf51dab765f2 |
Transpilation MD5: | f2db717420e0842be348ba1febf40013 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-29 06:34:04 |
Source code size: | 490 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 722 / 1002 |
Version history: | 9 change(s) |
Referenced in: | [show references] |