| 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.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 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 | |||||||