org.apache.commons.vfs2
Interface FileListener

All Known Implementing Classes:
DelegateFileObject, WeakRefFileListener

public interface FileListener

Listens for changes to a file.

Version:
$Revision: 1035154 $ $Date: 2010-11-15 11:58:06 +0530 (Mon, 15 Nov 2010) $
Author:
Commons VFS team

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 Exception
Called when a file is created.

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

fileDeleted

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

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

fileChanged

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

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


Copyright © 2002–2015 WSO2. All rights reserved.