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

10
LINES

< > BotCompany Repo | #1033493 // zip2zip_stored

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

Transpiled version (4563L) is out of date.

svoid zip2zip_stored(File inZip, ZipOutputStream outZip) ctex {
  temp ZipFile zipFile = new(inZip);
  for (e : enumerationToIterator(zipFile.entries())) {
    print("Copying " + e.getName());
    e.setMethod(ZipOutputStream.STORED);
    e.setCompressedSize(e.getSize());
    outZip.putNextEntry(e);
    copyStreamAndCloseInput(zipFile.getInputStream(e), outZip);
  }
}

Author comment

Began life as a copy of #1001173

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033493
Snippet name: zip2zip_stored
Eternal ID of this version: #1033493/4
Text MD5: 38c9f3fd674731466e9f6ce47fb6ade0
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-29 06:38:06
Source code size: 378 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 99 / 144
Version history: 3 change(s)
Referenced in: [show references]