|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jcomet.core.FileMonitor
Monitors a file and notifys you when it has changed
Constructor Summary | |
FileMonitor(java.io.File file,
FileChangeListener listener,
long period)
Monitors a file and notifys you when it has changed |
Method Summary | |
protected void |
fireFileChangeEvent(FileChangeListener listener,
java.io.File file)
|
void |
stop()
stops the monitoring |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileMonitor(java.io.File file, FileChangeListener listener, long period)
file
- the file to be monitoredlistener
- the listener to be notifiedperiod
- the interval in which to check the fileMethod Detail |
public void stop()
protected void fireFileChangeEvent(FileChangeListener listener, java.io.File file) throws java.io.IOException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |