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.

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

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: 154 / 217
Version history: 5 change(s)
Referenced in: [show references]