org.xins.common.io
Interface FileWatcher.Listener

Enclosing interface:
FileWatcher

public static interface FileWatcher.Listener

Interface for file watcher listeners.

Note that exceptions thrown by these callback methods will be ignored by the FileWatcher.

Since:
XINS 1.0.0
Version:
$Revision: 1.31 $ $Date: 2006/08/28 09:12:34 $
Author:
Ernst de Haan

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

fileNotFound

public void fileNotFound()
Callback method, called if the file is checked but cannot be found. This method is called the first time the file is determined not to exist, but also each consecutive time the file is still determined not to be found.


fileFound

public void fileFound()
Callback method, called if the file is found for the first time since the FileWatcher was started. Each consecutive time the file still exists (and is readable), either fileModified() or fileNotModified() is called.


securityException

public void securityException(SecurityException exception)
Callback method, called if an authorisation error prevents that the file is checked for existence and last modification date.

Parameters:
exception - the caught exception, not null.

fileModified

public void fileModified()
Callback method, called if the file was checked and found to be modified.


fileNotModified

public void fileNotModified()
Callback method, called if the file was checked but found not to be modified.



See http://www.xins.org/.