If you can use Java 7 there are File Watchers and you could implement what you need.
File Notifications
For Java 6 (and previous) you would have to use Apache Commons VFS (File Monitor) lib to create your own file watcher.
If you can't go to Java 7 or use third party libs (e.g commons or jnotify) you would have to write a file watchdog your self using polling threads.