Package org.apache.commons.vfs2
Interface FileListener
- All Known Implementing Classes:
- DelegateFileObject,- WeakRefFileListener
public interface FileListener
Listens for changes to a file.
- 
Method SummaryModifier and TypeMethodDescriptionvoidfileChanged(FileChangeEvent event) Called when a file is changed.voidfileCreated(FileChangeEvent event) Called when a file is created.voidfileDeleted(FileChangeEvent event) Called when a file is deleted.
- 
Method Details- 
fileChangedCalled when a file is changed.This will only happen if you monitor the file using FileMonitor.- Parameters:
- event- The FileChangeEvent.
- Throws:
- Exception- if an error occurs.
 
- 
fileCreatedCalled when a file is created.- Parameters:
- event- The FileChangeEvent.
- Throws:
- Exception- if an error occurs.
 
- 
fileDeletedCalled when a file is deleted.- Parameters:
- event- The FileChangeEvent.
- Throws:
- Exception- if an error occurs.
 
 
-