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

9
LINES

< > BotCompany Repo | #1030578 - listZipAsNameToSizeMap

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

Libraryless. Click here for Pure Java version (2792L/17K).

static Map<S, Long> listZipAsNameToSizeMap(File inZip) ctex {
  if (inZip == null) null;
  temp ZipFile zipFile = new ZipFile(inZip);
  ret listZipAsNameToSizeMap(zipFile);
}
    
static Map<S, Long> listZipAsNameToSizeMap(ZipFile zipFile) {
  ret mapToMap(listZipEntries(zipFile), e -> pair(e.getName(), e.getSize()));
}

Author comment

Began life as a copy of #1022702

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1030578
Snippet name: listZipAsNameToSizeMap
Eternal ID of this version: #1030578/1
Text MD5: e0e75f9a6395c0ee1f5177ccc23f4ea8
Transpilation MD5: 3ded4932fa2387b17cdb7f7e82502fa5
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-01-13 09:02:37
Source code size: 329 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 27 / 43
Referenced in: [show references]

Formerly at http://tinybrain.de/1030578 & http://1030578.tinybrain.de