com.myjavaworld.util
Class FileChangeMonitor
java.lang.Object
com.myjavaworld.util.FileChangeMonitor
- All Implemented Interfaces:
- ActionListener, EventListener
public class FileChangeMonitor
- extends Object
- implements ActionListener
A thread that monitors zero or more files to see if they are changed. A
FileChangedEvent
will be delivered to all registered listeners
when a file is modified.
- Author:
- Sai Pullabhotla
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileChangeMonitor
public FileChangeMonitor()
add
public void add(File file)
remove
public void remove(File file)
addFileChangeListener
public void addFileChangeListener(FileChangeListener listener)
removeFileChangeListener
public void removeFileChangeListener(FileChangeListener listener)
stopMonitor
public void stopMonitor()
actionPerformed
public void actionPerformed(ActionEvent evt)
- Specified by:
actionPerformed
in interface ActionListener
fireFileChanged
protected void fireFileChanged(FileChangeEvent evt)
Copyright © 2000-2012 jMethods, Inc.. All Rights Reserved.