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

public void fileCreated(FileChangeEvent event)
                 throws Exception
Called when a file is created.

Throws:
Exception

fileDeleted

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

Throws:
Exception

fileChanged

public void fileChanged(FileChangeEvent event)
                 throws Exception
Called when a file is changed.
This will only happen if you monitor the file using FileMonitor.

Throws:
Exception


Copyright © 2002-2007 The Apache Software Foundation. All Rights Reserved.