|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.persistenceModel.FileWatcher
public final class FileWatcher
A file watcher watches a file asynchronously and tells a connected source about changes of that file.
| Constructor Summary | |
|---|---|
FileWatcher(File file,
IFileStateListener listener)
Creates a new file watcher bound to the given file. |
|
FileWatcher(File file,
IFileStateListener listener,
ScheduledExecutorService executor)
Creates a new file watcher bound to the given file. |
|
FileWatcher(String filename,
IFileStateListener listener)
Creates a new file watcher bound to the given file. |
|
| Method Summary | |
|---|---|
void |
disable()
Disables the watcher, so that no further events are fired. |
void |
dispose()
Closes the file watcher. |
void |
enable()
Enables the watcher to fire events. |
void |
run()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileWatcher(String filename,
IFileStateListener listener)
filename - The file name.listener - The listener which will get informed when the file changes.
public FileWatcher(File file,
IFileStateListener listener)
file - The file.listener - The listener which will get informed when the file changes.
public FileWatcher(File file,
IFileStateListener listener,
ScheduledExecutorService executor)
file - The file.listener - The listener which will get informed when the file changes.executor - a scheduled executor to be used by the file watcher; null if the file watcher should use its
own| Method Detail |
|---|
public void disable()
public void enable()
public void dispose()
public void run()
run in interface Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||