Libraryless. Click here for Pure Java version (2098L/13K).
1 | static ZipEntry firstZipEntry(File inZip) ctex { |
2 | if (inZip == null) null; |
3 | temp ZipFile zipFile = new ZipFile(inZip); |
4 | ret firstZipEntry(zipFile); |
5 | } |
6 | |
7 | static ZipEntry firstZipEntry(ZipFile zipFile) ctex { |
8 | Enumeration entries = zipFile.entries(); |
9 | ret entries.hasMoreElements() ? (ZipEntry) entries.nextElement() : null; |
10 | } |
Began life as a copy of #1022702
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: | #1025252 |
Snippet name: | firstZipEntry |
Eternal ID of this version: | #1025252/1 |
Text MD5: | d5359372419063c619032c2971af0962 |
Transpilation MD5: | cf696353494b4e1cb2d7a4660b976573 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-16 18:04:18 |
Source code size: | 340 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 245 / 338 |
Referenced in: | [show references] |