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

8
LINES

< > BotCompany Repo | #1036146 // tailFileLinewiseFromPosition - start with certain position in file; output full lines

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (10198L) is out of date.

static TailFile tailFileLinewiseFromPosition(File file, int interval, long position, IVF1<S> onData, ISleeper sleeper default defaultSleeper()) {
  if (file == null) null;
  TailFile tf = new TailFile(file, interval, vfAppendToLineBuffer(new LineBuffer(toVF1(onData))));
  tf.sleeper(sleeper);
  tf.l = position;
  tf.start();
  ret tf;
}

Author comment

Began life as a copy of #1014603

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1036146
Snippet name: tailFileLinewiseFromPosition - start with certain position in file; output full lines
Eternal ID of this version: #1036146/6
Text MD5: 5d573514688001b1f67ab7b7ce36eaf7
Author: stefan
Category: javax / i.o.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-11-28 20:54:48
Source code size: 345 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 90 / 127
Version history: 5 change(s)
Referenced in: [show references]