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

14
LINES

< > BotCompany Repo | #1022708 // renderZipEntriesWithCompressedSizes

JavaX fragment (include)

sS renderZipEntriesWithCompressedSizes(S zip) {
  ret renderZipEntriesWithCompressedSizes(newFile(zip));
}

sS renderZipEntriesWithCompressedSizes(File zip) {
  ret renderZipEntriesWithCompressedSizes(listZipEntries(zip));
}

sS renderZipEntriesWithCompressedSizes(L<ZipEntry> entries) {
  ret asciiTable(ll("Compressed", "Uncompressed", "File"),
    map(func(ZipEntry e) -> LS {
      ll(toK_str(e.getCompressedSize()), toK_str(e.getSize()), e.getName())
    }, entries));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1022708
Snippet name: renderZipEntriesWithCompressedSizes
Eternal ID of this version: #1022708/4
Text MD5: 509f76d08344ab567d86592807511a4d
Author: stefan
Category: javax / io
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-31 21:57:28
Source code size: 488 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 220 / 286
Version history: 3 change(s)
Referenced in: [show references]