org.apache.commons.vfs
Interface FileListener

All Known Implementing Classes:
DelegateFileObject, WeakRefFileListener

public interface FileListener

Listens for changes to a file.

Version:
$Revision: 763740 $ $Date: 2009-04-09 19:22:31 +0200 (Do, 09. Apr 2009) $
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.

Parameters:
event - The FileChangeEvent.
Throws:
java.lang.Exception - if an error occurs.

fileDeleted

void fileDeleted(FileChangeEvent event)
                 throws java.lang.Exception
Called when a file is deleted.

Parameters:
event - The FileChangeEvent.
Throws:
java.lang.Exception - if an error occurs.

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.

Parameters:
event - The FileChangeEvent.
Throws:
java.lang.Exception - if an error occurs.


Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.