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

15
LINES

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

JavaX fragment (include)

lib 1005255 // commons compress

static byte[] loadBinaryFileFromZipInZip(File inZip, S path1, S path2) ctex {
  temp ZipFile zip = newZipFile(inZip);
  InputStream in1 = zipInputStream(zip, path1);
  
  temp ZipArchiveInputStream zip = new(in1);
  ZipArchiveEntry entry = zip.getNextZipEntry();
  while (entry != null)
    if (eq(entry.getName(), path2)) {
      ret ...
    }
    
  null;
}

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