| java.lang.Object com.anthonyeden.lib.resource.ResourceFileMonitor
ResourceFileMonitor | public class ResourceFileMonitor implements Runnable,ResourceMonitor(Code) | | Monitors the given File for changes.
author: Anthony Eden |
Method Summary | |
public void | run() The thread's run method. | public void | startMonitor() Start the monitoring thread. | public void | stopMonitor() Stop the monitoring thread. |
ResourceFileMonitor | public ResourceFileMonitor(File file, int delay, ResourceRecipient handler)(Code) | | Construct a ResourceFileMonitor for the given file.
Parameters: file - The file Parameters: delay - The delay Parameters: handler - The handler? |
run | public void run()(Code) | | The thread's run method. This method should not be executed directly
nor should a thread be manually created, rather the startMonitor()
and stopMonitor() methods should be used to start and stop
the monitor.
|
startMonitor | public void startMonitor()(Code) | | Start the monitoring thread. If the thread is already running then
this method will not attempt to start a new thread.
|
stopMonitor | public void stopMonitor()(Code) | | Stop the monitoring thread. If the monitoring thread is not running
then this method will do nothing.
|
|
|