org.apache.commons.vfs
Interface FileListener

All Known Implementing Classes:
DelegateFileObject

public interface FileListener

Listens for changes to a file.

Version:
$Revision: 170205 $ $Date: 2005-05-15 10:21:59 +0200 (Sun, 15 May 2005) $
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-2005 The Apache Software Foundation. All Rights Reserved.