1 | please include function checkFileNotTooBigToRead. |
2 | |
3 | svoid setMaxFileSizeAllowedToReadInThread(final int size) { |
4 | checkFileNotTooBigToRead_tl.set(voidfunc(File f) { |
5 | long l = fileSize(f); |
6 | if (l > size) |
7 | fail("File too big to read: " + f + " (" + l + "/" + size + ")"); |
8 | }); |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1015742 |
Snippet name: | setMaxFileSizeAllowedToReadInThread |
Eternal ID of this version: | #1015742/1 |
Text MD5: | 6335e4871f54393b1beb3285239b4da5 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-26 20:23:15 |
Source code size: | 295 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 369 / 402 |
Referenced in: | [show references] |