1 | static RandomAccessFile newRandomAccessFile(File path, S mode) ctex { |
2 | bool forWrite = mode.indexOf('w') >= 0; |
3 | if (forWrite) mkdirsForFile(path); |
4 | RandomAccessFile f = new RandomAccessFile(path, mode); |
5 | ifndef LeanMode |
6 | callJavaX("registerIO", f, path, forWrite); |
7 | endifndef |
8 | ret f; |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1005687 |
Snippet name: | newRandomAccessFile - registered version of new RandomAccessFile, plus mkdirs |
Eternal ID of this version: | #1005687/8 |
Text MD5: | fa7f1a8f6b1df5b9c321083e67168d98 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-08-03 11:56:37 |
Source code size: | 300 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 538 / 768 |
Version history: | 7 change(s) |
Referenced in: | [show references] |