public class FileChangeNotifier extends Object implements FileChangeListener
Modifier and Type | Class and Description |
---|---|
class |
FileChangeNotifier.FileEntry |
Constructor and Description |
---|
FileChangeNotifier() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(FileChangeListener listener) |
void |
filesCreated(List<File> entries) |
void |
filesModified(List<File> entries)
Notifies that the given files changed.
|
void |
filesRemoved(List<File> entries) |
static void |
main(String[] args) |
void |
removeListener(FileChangeListener listener) |
void |
start() |
void |
start(int startAfter,
int interval) |
void |
stop() |
void |
unwatch(File file) |
void |
watch(File file) |
public void start()
public void start(int startAfter, int interval)
public void stop()
public void watch(File file) throws IOException
IOException
public void unwatch(File file) throws IOException
IOException
public void addListener(FileChangeListener listener)
public void removeListener(FileChangeListener listener)
public void filesCreated(List<File> entries)
filesCreated
in interface FileChangeListener
public void filesRemoved(List<File> entries)
filesRemoved
in interface FileChangeListener
public void filesModified(List<File> entries)
FileChangeListener
filesModified
in interface FileChangeListener
Copyright © 2011 Nuxeo SA. All Rights Reserved.