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).

1  
static Map<S, Long> listZipAsNameToCRCMap(File inZip) ctex {
2  
  if (inZip == null) null;
3  
  temp ZipFile zipFile = new ZipFile(inZip);
4  
  ret listZipAsNameToCRCMap(zipFile);
5  
}
6  
    
7  
static Map<S, Long> listZipAsNameToCRCMap(ZipFile zipFile) {
8  
  ret mapToMap(listZipEntries(zipFile), e -> pair(e.getName(), e.getCrc()));
9  
}

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: 174 / 257
Referenced in: [show references]