|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.lenya.ac.file.FileItemManager.DirectoryChangeNotifier
public static class FileItemManager.DirectoryChangeNotifier
Helper class to observe a directory for changes.
| Constructor Summary | |
|---|---|
FileItemManager.DirectoryChangeNotifier(java.io.File _directory,
java.io.FileFilter _filter)
Ctor. |
|
| Method Summary | |
|---|---|
java.io.File[] |
getAddedFiles()
Returns the added files. |
java.io.File[] |
getChangedFiles()
Returns the changed files. |
java.io.File[] |
getRemovedFiles()
Returns the removed files. |
boolean |
hasChanged()
Checks if the directory has changed (a new file was added, a file was removed, a file has changed). |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileItemManager.DirectoryChangeNotifier(java.io.File _directory,
java.io.FileFilter _filter)
_directory - The directory to observe._filter - A filter to specify the file type to observe.| Method Detail |
|---|
public boolean hasChanged()
throws java.io.IOException
java.io.IOException - when something went wrong.public java.io.File[] getAddedFiles()
public java.io.File[] getRemovedFiles()
public java.io.File[] getChangedFiles()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||