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

9
LINES

< > BotCompany Repo | #1000729 // copyStream (OLD, 1024 bytes buffer)

JavaX fragment (include)

static void copyStream(InputStream in, OutputStream out) ctex {
  byte buf[] = new byte[1024];
  int l;
  while (true) {
    l = in.read(buf);
    if (l <= 0) break;
    out.write(buf, 0, l);
  }
}

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: 562 / 1341
Referenced in: [show references]