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)

static FileOutputStream newFileOutputStream(File path) throws IOException {
  ret newFileOutputStream(path.getPath());
}

static FileOutputStream newFileOutputStream(S path) throws IOException {
  ret newFileOutputStream(path, false);
}

static FileOutputStream newFileOutputStream(File path, bool append) throws IOException {
  ret newFileOutputStream(path.getPath(), append);
}

static FileOutputStream newFileOutputStream(S path, bool append) throws IOException {
  mkdirsForFile(path);
  FileOutputStream f = new FileOutputStream(path, append);
  ifndef LeanMode
  _registerIO(f, path, true);
  endifndef
  ret f;
}

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: 435 / 636
Version history: 5 change(s)
Referenced in: [show references]