1 | // closes the input stream too. |
2 | static void stream2file(InputStream in, File out) ctex {
|
3 | mkdirsForFile(out); |
4 | FileOutputStream fos = new FileOutputStream(out); |
5 | copyStream(in, fos); |
6 | in.close(); |
7 | fos.close(); |
8 | } |
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: | #1001336 |
| Snippet name: | stream2file |
| Eternal ID of this version: | #1001336/1 |
| Text MD5: | 5ba3236b9c655e0c3a21a0b89ee5768a |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2015-10-10 18:05:58 |
| Source code size: | 223 bytes / 8 lines |
| Pitched / IR pitched: | No / Yes |
| Views / Downloads: | 984 / 1199 |
| Referenced in: | [show references] |