3

Possible Duplicate:
Java detect changes in filesystem

Can anyone suggest a Java API for tracking events in FileSystem? I found one - JNotify, but it doesn't support 64-bit systems.

Also, the new java.nio.* library is very new to use in a deployment level application, as many JREs don't really support it yet.

One alternative is to poll the FS for changes, which I am sure many do, but my gut feeling says that it's going to be very resource intensive.

Community
  • 1
  • 1
Binaek Sarkar
  • 617
  • 8
  • 21
  • 1
    You are right about it being resource intensive which is why the WatchService was added to Java 7. http://download.oracle.com/javase/tutorial/essential/io/notification.html – Peter Lawrey Sep 18 '11 at 19:44

0 Answers0