|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.TimerTask
org.openi.util.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
- FileMethod Detail |
public final void run()
protected abstract void onChange(java.io.File file)
file
- File
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |