Package com.gentlyweb.utils
Class FileWatcher.Worker
- java.lang.Object
-
- com.gentlyweb.utils.FileWatcher.Worker
-
- All Implemented Interfaces:
Runnable
- Enclosing class:
- FileWatcher
protected class FileWatcher.Worker extends Object implements Runnable
-
-
Constructor Summary
Constructors Constructor Description Worker(FileWatcher fw)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFileChangeListener(FileChangeListener f)
void
addFileChangeListener(FileChangeListener f, int changeTypes)
protected void
fireFileChange(File file, FileChangeEvent event, int types)
void
removeFileChangeListener(FileChangeListener f)
void
run()
void
setCheckRepeatTime(long millis)
void
start()
void
stop()
-
-
-
Constructor Detail
-
Worker
public Worker(FileWatcher fw)
-
-
Method Detail
-
setCheckRepeatTime
public void setCheckRepeatTime(long millis)
-
start
public void start()
-
stop
public void stop()
-
fireFileChange
protected void fireFileChange(File file, FileChangeEvent event, int types)
-
removeFileChangeListener
public void removeFileChangeListener(FileChangeListener f)
-
addFileChangeListener
public void addFileChangeListener(FileChangeListener f, int changeTypes)
-
addFileChangeListener
public void addFileChangeListener(FileChangeListener f)
-
-