public static interface FileWatcher.Listener
Note that exceptions thrown by these callback methods will be ignored
by the FileWatcher
.
Modifier and Type | Method and Description |
---|---|
void |
fileFound()
Callback method, called if the file is found for the first time since
the
FileWatcher was started or after it has been deleted. |
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.
|
void fileNotFound()
void fileFound()
FileWatcher
was started or after it has been deleted.
Each consecutive time the file still exists (and is readable), either
fileModified()
or fileNotModified()
is called.void securityException(SecurityException exception)
exception
- the caught exception, not null
.void fileModified()
void fileNotModified()
See http://www.xins.org/.