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

9
LINES

< > BotCompany Repo | #1030582 // listZipAsNameToCRCMap - value is checksum

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

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

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

Author comment

Began life as a copy of #1030578

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030582
Snippet name: listZipAsNameToCRCMap - value is checksum
Eternal ID of this version: #1030582/1
Text MD5: cff82a224f11d0c13937753b272420e2
Transpilation MD5: e8c5a049469bb958faa04fd7f472b0ac
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:10:40
Source code size: 325 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 106 / 157
Referenced in: [show references]