static S readLineThroughUTF8Processor(UTF8Processor p, InputStream in) ctex { new StringBuilder input; bool hasLine = false; while (!hasLine) { int available=in.available(); if (available==0) break; byte b[]=new byte[available]; in.read(b); for i to available: { S s = p.processByte(b[i]); if (nempty(s)) { input.append(s); if (s.equals("\n")) hasLine = true; } } } ret input.toString(); }
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: | #1008077 |
Snippet name: | readLineThroughUTF8Processor |
Eternal ID of this version: | #1008077/2 |
Text MD5: | 6969828e61444cf630773ce993c7a644 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-04-23 16:29:52 |
Source code size: | 474 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 482 / 512 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1014617 - readChunkThroughUTF8Processor |