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

13
LINES

< > BotCompany Repo | #1034043 // zipFileToJSONFingerprint_md5 - list each file name with md5

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

Libraryless. Click here for Pure Java version (4729L/27K).

1  
static L<Map> zipFileToJSONFingerprint_md5(File zip) {
2  
  temp zipFile = zipFile(zip);
3  
  ret zipFileToJSONFingerprint_md5(zipFile);
4  
}
5  
6  
static L<Map> zipFileToJSONFingerprint_md5(ZipFile zip) {
7  
  ret map(listZipEntries(zip), e -> ctex {
8  
    ret litorderedmap(
9  
      name := e.getName(),
10  
      md5 := md5OfStream(zip.getInputStream(e))
11  
    );
12  
  });
13  
}

Author comment

Began life as a copy of #1034019

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1034043
Snippet name: zipFileToJSONFingerprint_md5 - list each file name with md5
Eternal ID of this version: #1034043/5
Text MD5: 9ca3d037b4f4b7247a5b57376e65ed67
Transpilation MD5: 52b1275d6a83d98a0eb4199cc979aa78
Author: stefan
Category: javax / io
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-18 13:33:43
Source code size: 359 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 145 / 240
Version history: 4 change(s)
Referenced in: [show references]