Package org.apache.commons.vfs
Interface FileListener
-
- All Known Implementing Classes:
DelegateFileObject
public interface FileListenerListens for changes to a file.- Version:
- $Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Wed, 29 Nov 2006) $
- Author:
- Adam Murdoch
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfileChanged(FileChangeEvent event)Called when a file is changed.
This will only happen if you monitor the file usingFileMonitor.voidfileCreated(FileChangeEvent event)Called when a file is created.voidfileDeleted(FileChangeEvent event)Called when a file is deleted.
-
-
-
Method Detail
-
fileCreated
void fileCreated(FileChangeEvent event) throws java.lang.Exception
Called when a file is created.- Throws:
java.lang.Exception
-
fileDeleted
void fileDeleted(FileChangeEvent event) throws java.lang.Exception
Called when a file is deleted.- Throws:
java.lang.Exception
-
fileChanged
void fileChanged(FileChangeEvent event) throws java.lang.Exception
Called when a file is changed.
This will only happen if you monitor the file usingFileMonitor.- Throws:
java.lang.Exception
-
-