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

15
LINES

< > BotCompany Repo | #1028797 // zipToByteComp

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

Uses 11335K of libraries. Click here for Pure Java version (7965L/52K).

static File zipToByteComp(File zip) {
  ret zipToByteComp(zip, replaceExtension(zip, ".bc"));
}

static File zipToByteComp(File zip, File bc) {
  new LineCompCompressor comp;
  comp.verboseStats = true;
  comp.byteMode = true;
  comp.loadTexts(zipFileToStringMap(zip));
  comp.run();
  lcSaveToFile(comp, bc);
  print("Zip:      " + renderFileInfo(zip));
  print("ByteComp: " + renderFileInfo(bc));
  ret bc;
}

Author comment

Began life as a copy of #1028789

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, qipzzgwivdol, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028797
Snippet name: zipToByteComp
Eternal ID of this version: #1028797/2
Text MD5: ba1a3f4abcc784a49bf61e8b9e51fb8f
Transpilation MD5: 0ba1ae005ff503024f3b2a054fe3f82e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-08 23:52:47
Source code size: 424 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 242 / 336
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)