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

5
LINES

< > BotCompany Repo | #1008745 // readLineFromReaderWithClose

JavaX fragment (include)

1  
static S readLineFromReaderWithClose(BufferedReader r) ctex {
2  
  S s = r.readLine();
3  
  if (s == null) r.close();
4  
  ret s;
5  
}

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: #1008745
Snippet name: readLineFromReaderWithClose
Eternal ID of this version: #1008745/2
Text MD5: 7e12a48d39c7bb39c1da80c7381baffd
Author: stefan
Category: javax / i.o.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-31 13:49:18
Source code size: 126 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 509 / 567
Version history: 1 change(s)
Referenced in: [show references]