Libraryless. Click here for Pure Java version (2216L/14K).
1 | static File createZipFileWithSingleTextFile(File zipFile, S name, S text) { |
2 | temp ZipOutputStream outZip = newZipOutputStream(zipFile); |
3 | zip_addTextFile(outZip, name, text); |
4 | ret zipFile; |
5 | } |
Began life as a copy of #1025017
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025471 |
Snippet name: | createZipFileWithSingleTextFile |
Eternal ID of this version: | #1025471/1 |
Text MD5: | 659639761d9509b919d3003505acf300 |
Transpilation MD5: | 863b0f88804e2b902e51a4333f97d004 |
Author: | stefan |
Category: | javax / io |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-29 16:37:10 |
Source code size: | 196 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 261 / 340 |
Referenced in: | [show references] |