1 | static byte[] isJAR_magic = bytesFromHex("504B0304"); |
2 | |
3 | static bool isJAR(byte[] data) { |
4 | ret byteArrayStartsWith(data, isJAR_magic); |
5 | } |
6 | |
7 | static bool isJAR(File f) { |
8 | ret isJAR(loadBeginningOfBinaryFile(f, l(isJAR_magic))); |
9 | } |
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: | 292 / 355 |
Version history: | 3 change(s) |
Referenced in: | [show references] |