static java.io.File virtual_newFile(String path) {
return new java.io.File(virtual_rebase(path));
}
static java.io.FileInputStream virtual_newFileInputStream(String path) {
return new java.io.FileInputStream(virtual_rebase(path));
}
static java.io.FileInputStream virtual_newFileOutputStream(String path) {
return new java.io.FileOutputStream(virtual_rebase(path));
}
static String virtual_baseDir = "";
static String virtual_rebase(String path) {
return new File(new File(virtual_baseDir), path).getPath();
}Snippet is not live.
Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
2 comment(s) hidden. show
| Snippet ID: | #2000345 |
| Snippet name: | Virtualized java.io file functions |
| Eternal ID of this version: | #2000345/1 |
| Text MD5: | 71321020b1484c10118b6708b2e23b3f |
| Author: | stefan |
| Category: | javax |
| Type: | New Tinybrain snippet |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2015-05-11 17:47:26 |
| Source code size: | 537 bytes / 17 lines |
| Pitched / IR pitched: | No / Yes |
| Views / Downloads: | 1091 / 210 |
| Referenced in: | [show references] |