static byte[] isJAR_magic = bytesFromHex("504B0304"); static bool isJAR(byte[] data) { ret byteArrayStartsWith(data, isJAR_magic); } static bool isJAR(File f) { ret isJAR(loadBeginningOfBinaryFile(f, l(isJAR_magic))); }
Began life as a copy of #1009031
download show line numbers debug dex old transpilations
Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, wnsclhtenguj
No comments. add comment
| Snippet ID: | #1020141 |
| Snippet name: | isJAR (same as zip) |
| Eternal ID of this version: | #1020141/4 |
| Text MD5: | 80c3498e7ebad63e42c675580268b057 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-12-09 01:20:33 |
| Source code size: | 233 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 775 / 827 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |