Libraryless. Click here for Pure Java version (10201L/55K).
1 | static CloseableIterableIterator<S> linesFromReader(Reader r, IResourceHolder resourceHolder default null) { |
2 | final BufferedReader br = bufferedReader(r); |
3 | ret holdResource(resourceHolder, iteratorFromFunction_f0_autoCloseable(func -> S { readLineFromReaderWithClose(br) }, _wrapIOCloseable(r))); |
4 | } |
5 | |
6 | static CloseableIterableIterator<S> linesFromReader(InputStream in) { |
7 | ret linesFromReader(inputStreamReader(in)); |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1008739 |
Snippet name: | linesFromReader - make sure to close (use temp) |
Eternal ID of this version: | #1008739/14 |
Text MD5: | fedac43e7ecaea34279f245070c0bd7e |
Transpilation MD5: | cd584b37824426a71bf35ae3dd1235bf |
Author: | stefan |
Category: | javax / i.o. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2023-02-21 20:24:17 |
Source code size: | 426 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 598 / 733 |
Version history: | 13 change(s) |
Referenced in: | [show references] |