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

11
LINES

< > BotCompany Repo | #1028788 // zipFileToStringMap - uses raw bytes encoding

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

Transpiled version (2514L) is out of date.

static SS zipFileToStringMap(File zip) ctex {
  temp ZipFile zipFile = new ZipFile(zip);
  Enumeration entries = zipFile.entries();
  new TreeMap<S> map;
  while (entries.hasMoreElements()) {
    ZipEntry entry = cast entries.nextElement(); 
    if (entry.isDirectory()) continue;
    map.put(entry.getName(), streamToString_rawBytes(zipFile.getInputStream(entry)));
  }
  ret map;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1028788
Snippet name: zipFileToStringMap - uses raw bytes encoding
Eternal ID of this version: #1028788/3
Text MD5: 1a015d70dd6c8b1d0093feb1104776f0
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:43:24
Source code size: 393 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 333 / 454
Version history: 2 change(s)
Referenced in: [show references]