org.apache.commons.vfs
Interface FileListener

All Known Implementing Classes:
DelegateFileObject

public interface FileListener

Listens 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
 void fileChanged(FileChangeEvent event)
          Called when a file is changed.
This will only happen if you monitor the file using FileMonitor.
 void fileCreated(FileChangeEvent event)
          Called when a file is created.
 void fileDeleted(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 using FileMonitor.

Throws:
java.lang.Exception