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

8
LINES

< > BotCompany Repo | #1003777 // file2stream

JavaX fragment (include)

1  
static void file2stream(File src, OutputStream out) throws IOException {
2  
  FileInputStream inputStream = new FileInputStream(src);
3  
  try {
4  
    copyStream(inputStream, out);
5  
  } finally {
6  
    inputStream.close();
7  
  }
8  
}

Author comment

Began life as a copy of #1000843

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1003777
Snippet name: file2stream
Eternal ID of this version: #1003777/1
Text MD5: 192a0d4284d8c1d9d955b29bfc62b2c1
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-07-27 00:06:59
Source code size: 224 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 630 / 630
Referenced in: [show references]