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

15
LINES

< > BotCompany Repo | #1022643 // loadBinaryFileFromZipInZip [dev.]

JavaX fragment (include)

1  
lib 1005255 // commons compress
2  
3  
static byte[] loadBinaryFileFromZipInZip(File inZip, S path1, S path2) ctex {
4  
  temp ZipFile zip = newZipFile(inZip);
5  
  InputStream in1 = zipInputStream(zip, path1);
6  
  
7  
  temp ZipArchiveInputStream zip = new(in1);
8  
  ZipArchiveEntry entry = zip.getNextZipEntry();
9  
  while (entry != null)
10  
    if (eq(entry.getName(), path2)) {
11  
      ret ...
12  
    }
13  
    
14  
  null;
15  
}

Author comment

Began life as a copy of #1002527

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1022643
Snippet name: loadBinaryFileFromZipInZip [dev.]
Eternal ID of this version: #1022643/1
Text MD5: 1b61f144f2a3e9ca607afb6451a81f53
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-25 23:30:07
Source code size: 406 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 276 / 295
Referenced in: [show references]