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

12
LINES

< > BotCompany Repo | #1033499 // bcelFixZip2Zip

JavaX fragment (include) [tags: use-pretranspiled]

Uses 1311K of libraries. Click here for Pure Java version (4937L/28K).

svoid bcelFixZip2Zip(File inZip, File outZip
    default appendBaseName(inZip, ".bcel-fixed")) {
  Zip2Zip z2z = new(inZip, outZip);
  z2z.copyFileContents = (name, in, out) -> {
    if (endsWith(name, ".class")) {
      print("FIXING " + name);
      bcelRoundtrip(in, name, out);
    } else
      copyStream(in, out);
  };
  z2z.run();
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033499
Snippet name: bcelFixZip2Zip
Eternal ID of this version: #1033499/4
Text MD5: fcb66299bed42a1b308c860732cd97b8
Transpilation MD5: ade29ac713e6e7d1bd1d1848beb77450
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-29 07:24:51
Source code size: 350 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 154 / 225
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1033514 - replaceFileZip2Zip