|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.TimerTask
org.openi.util.FileChangeWatcher
public abstract class FileChangeWatcher
| Constructor Summary | |
|---|---|
FileChangeWatcher(java.io.File file)
Constructor initializes file. |
|
| Method Summary | |
|---|---|
protected abstract void |
onChange(java.io.File file)
Fired when the file is modified. |
void |
run()
A thread is launched to check the lastModified value and compare it with the previous value. |
| Methods inherited from class java.util.TimerTask |
|---|
cancel, scheduledExecutionTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileChangeWatcher(java.io.File file)
file - File| Method Detail |
|---|
public final void run()
run in interface java.lang.Runnablerun in class java.util.TimerTaskprotected abstract void onChange(java.io.File file)
file - File
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||