Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #618 // I/O virtualizer (draft)

JavaX source code - run with: x30.jar

!609 // direct script (main adder)
!592 // auto-importer
!1000265 // standard function adder

String s = loadMainJava();
s = s.replaceAll("new\\s+File\\(", "virtual.newFile(");
s = s.replaceAll("new\\s+FileInputStream\\(", "virtual.newFileInputStream(");
s = s.replaceAll("new\\s+FileOutputStream\\(", "virtual.newFileOutputStream(");
s += "\n\n" + loadSnippet("#2000350"); // load class virtual
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: 853 / 818
Referenced in: [show references]