| File modification monitor thread. It monitors a gving file in a lowest
priority thread. Then, if it detects any modification, invokes
a giving interface. Note: Callback.onModified is at least called once.
Caller has to implement the FileWatchdog.Callback interface. Then,
new FileWatchdog(filename, 30000, callback).start();
This class is extended from Thread, so you could manipulate it as
a normal thread, such as interrupt, suspend, and change priority.
The watchdog executes at the lowest priority, so it won't affect
much of the system performance.
author: tomyeh |