|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for file watcher listeners.
Note that exceptions thrown by these callback methods will be ignored
by the FileWatcher
.
Method Summary | |
void |
fileFound()
Callback method, called if the file is found for the first time since the FileWatcher was started. |
void |
fileModified()
Callback method, called if the file was checked and found to be modified. |
void |
fileNotFound()
Callback method, called if the file is checked but cannot be found. |
void |
fileNotModified()
Callback method, called if the file was checked but found not to be modified. |
void |
securityException(SecurityException exception)
Callback method, called if an authorisation error prevents that the file is checked for existence and last modification date. |
Method Detail |
public void fileNotFound()
public void fileFound()
FileWatcher
was started. Each consecutive time the
file still exists (and is readable), either
fileModified()
or fileNotModified()
is called.
public void securityException(SecurityException exception)
exception
- the caught exception, not null
.public void fileModified()
public void fileNotModified()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |