1 | static void copyStream(InputStream in, OutputStream out) ctex { |
2 | byte buf[] = new byte[1024]; |
3 | int l; |
4 | while (true) { |
5 | l = in.read(buf); |
6 | if (l <= 0) break; |
7 | out.write(buf, 0, l); |
8 | } |
9 | } |
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: | #1000729 |
Snippet name: | copyStream (OLD, 1024 bytes buffer) |
Eternal ID of this version: | #1000729/1 |
Text MD5: | 87a90f59b359854284e75a892fada2b0 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-04-16 14:32:42 |
Source code size: | 205 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 617 / 1406 |
Referenced in: | [show references] |