1 | static void copyStream(InputStream in, OutputStream out) ctex { |
2 | byte[] buf = new byte[65536]; |
3 | while (true) { |
4 | int n = in.read(buf); |
5 | if (n <= 0) return; |
6 | out.write(buf, 0, n); |
7 | } |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, wnsclhtenguj, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1000844 |
Snippet name: | copyStream |
Eternal ID of this version: | #1000844/1 |
Text MD5: | 879b1539ca04487bc62e4cf165f61661 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-08-27 13:00:05 |
Source code size: | 201 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 788 / 2312 |
Referenced in: | [show references] |