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

11
LINES

< > BotCompany Repo | #1021218 // scanLog_bounded_iterator - scan log made with logQuoted up to a certain byte index. TODO: closing if interrupted

JavaX fragment (include)

static IterableIterator<S> scanLog_bounded_iterator(File file, long max) {
  final Iterator<S> it = linesFromFile_bounded(file, max);
  ret iteratorFromFunction(func -> S {
    while (it.hasNext()) {
      S s = it.next();
      if (isProperlyQuoted(s))
        ret unquote(s);
    }
    null;
  });
}

Author comment

Began life as a copy of #1011458

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021218
Snippet name: scanLog_bounded_iterator - scan log made with logQuoted up to a certain byte index. TODO: closing if interrupted
Eternal ID of this version: #1021218/1
Text MD5: ca12cbcfcae24a2d9d2e84b3f8c1724d
Author: stefan
Category: javax / io
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-03 15:08:12
Source code size: 311 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 240 / 259
Referenced in: [show references]