1 | !609 // direct script (main adder) |
2 | !592 // auto-importer |
3 | !1000265 // standard function adder |
4 | |
5 | String s = loadMainJava(); |
6 | s = s.replaceAll("new\\s+File\\(", "virtual.newFile("); |
7 | s = s.replaceAll("new\\s+FileInputStream\\(", "virtual.newFileInputStream("); |
8 | s = s.replaceAll("new\\s+FileOutputStream\\(", "virtual.newFileOutputStream("); |
9 | s += "\n\n" + loadSnippet("#2000350"); // load class virtual |
10 | saveMainJava(s); |
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: | #618 |
Snippet name: | I/O virtualizer (draft) |
Eternal ID of this version: | #618/1 |
Text MD5: | 491d573b292ead67f92f7d3df8026bb3 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-05-12 20:29:45 |
Source code size: | 421 bytes / 10 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 856 / 822 |
Referenced in: | [show references] |