Uses 204K of libraries. Click here for Pure Java version (7368L/42K).
sclass Zip2Zip_Zip4j is AutoCloseable { // must set File inZip; new Set<S> filesWritten; // optional IPred<S> predicate; // internal Zip4j_MergeZipFilesWithFilter zip4j; close { dispose zip4j; } *(File outZip) ctex { zip4j = new Zip4j_MergeZipFilesWithFilter(outZip); } run { zip4j.addZipFile(inZip, fileName -> { if (predicate != null && !predicate.get(fileName)) false; ret filesWritten.add(fileName); }); } void finish() ctex { zip4j.finish(); } }
Began life as a copy of #1033735
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034362 |
Snippet name: | Zip2Zip_Zip4j - has simlar API as Zip2Zip_b |
Eternal ID of this version: | #1034362/10 |
Text MD5: | 4d5e22ba6e243a2a6122057daf306647 |
Transpilation MD5: | 83bfcaf04f90e6ed97265849d6156242 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-02-03 07:29:26 |
Source code size: | 560 bytes / 29 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 206 / 365 |
Version history: | 9 change(s) |
Referenced in: | #1003674 - Standard Classes + Interfaces (LIVE continued in #1034167) |