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

20
LINES

< > BotCompany Repo | #1005691 // newFileOutputStream - registered version of new FileOutputStream; also mkdirs()

JavaX fragment (include)

1  
static FileOutputStream newFileOutputStream(File path) throws IOException {
2  
  ret newFileOutputStream(path.getPath());
3  
}
4  
5  
static FileOutputStream newFileOutputStream(S path) throws IOException {
6  
  ret newFileOutputStream(path, false);
7  
}
8  
9  
static FileOutputStream newFileOutputStream(File path, bool append) throws IOException {
10  
  ret newFileOutputStream(path.getPath(), append);
11  
}
12  
13  
static FileOutputStream newFileOutputStream(S path, bool append) throws IOException {
14  
  mkdirsForFile(path);
15  
  FileOutputStream f = new FileOutputStream(path, append);
16  
  ifndef LeanMode
17  
  _registerIO(f, path, true);
18  
  endifndef
19  
  ret f;
20  
}

Author comment

Began life as a copy of #1005687

download  show line numbers  debug dex  old transpilations   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1005691
Snippet name: newFileOutputStream - registered version of new FileOutputStream; also mkdirs()
Eternal ID of this version: #1005691/6
Text MD5: 2ce863dee762bee6dd35b95c0e4007f4
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-16 21:20:46
Source code size: 638 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 550 / 773
Version history: 5 change(s)
Referenced in: [show references]