|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Observes a directory.
Gets a directory list and verifies whether these files that comply with the current filter have been added, removed or modified. The following ObserverNotification are sent:
An added
notification
when a file has been added
An removed
notification
when a file has been removed
An modified
notification
when a file has been modified
An error
notification
when the directory does not exist
.
Method Summary | |
java.io.File |
getDirectory()
The directory to be observed |
java.lang.String[] |
getFilter()
The suffixes used to filter the direcory |
void |
observe()
Gets a directory list and verifies whether these files that comply with the current filter have been added, removed or modified. |
void |
setDirectory(java.io.File directory)
The directory to be observed |
void |
setFilter(java.lang.String[] filter)
The suffixes used to filter the direcory |
Method Detail |
public void setDirectory(java.io.File directory)
file
- the dirctory to be observedpublic java.io.File getDirectory()
public java.lang.String[] getFilter()
public void setFilter(java.lang.String[] filter)
public void observe()
An added
notification
when a file has been added
An removed
notification
when a file has been removed
An modified
notification
when a file has been modified
An error
notification
when the directory does not exist
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |