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

11
LINES

< > BotCompany Repo | #1019346 // Non-Recursive File Watch Service Spike [OK]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Libraryless. Click here for Pure Java version (14828L/102K).

1  
!7
2  
3  
module FileWatchServiceSpike > DynPrintLog {
4  
  start {
5  
    WatchService watchService = jdk_watchService_start();
6  
    jdk_watchService_registerPath(javaxDataDir(), voidfunc(File f) {
7  
      print("CHANGE: " + f)
8  
    }, ENTRY_CREATE, ENTRY_DELETE, ENTRY_MODIFY, OVERFLOW);
9  
    print("Listening to changes in " + javaxDataDir());
10  
  }
11  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019346
Snippet name: Non-Recursive File Watch Service Spike [OK]
Eternal ID of this version: #1019346/3
Text MD5: 70a89947a71abe403c1801bb7857edf2
Transpilation MD5: 803050727c21ace0561202a735369335
Author: stefan
Category: javax / io
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-07 21:55:44
Source code size: 345 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 378 / 529
Version history: 2 change(s)
Referenced in: [show references]