|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<WatchingAttributes>
com.teamdev.filewatch.WatchingAttributes
public enum WatchingAttributes
Represents enumaration of file system attributes that FileWatcher can monitor.
| Enum Constant Summary | |
|---|---|
AccessDate
Specifies monitoring the changes of last access date attribute of a file or directory. |
|
Attributes
Specifies monitoring the changes of file's or directory's attributes. |
|
DirectoryName
Specifies monitoring of Create/Rename/Delete directory events. |
|
FileName
Specifies the monitoring of Create/Rename/Delete file events. |
|
ModifiedDate
Specifies monitoring the changes of last modified date attribute of a file or directory. |
|
Size
Specifies monitoring the changes of file size attribute. |
|
Subtree
Specifies the watching scope: when this option is specified then FileWatcher will monitor
the changes in a specified folder and all its subdirectories; otherwise only a specified directory will be monitored. |
|
| Method Summary | |
|---|---|
static WatchingAttributes |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static WatchingAttributes[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final WatchingAttributes Subtree
FileWatcher will monitor
the changes in a specified folder and all its subdirectories; otherwise only a specified directory will be monitored.
public static final WatchingAttributes FileName
FileEventsListener) will
receive FileEvent.Added, FileEvent.Renamed and
FileEvent.Deleted notifications respectively.
public static final WatchingAttributes DirectoryName
FileEventsListener) will
receive FileEvent.Added, FileEvent.Renamed and
FileEvent.Deleted notifications respectively.
public static final WatchingAttributes Attributes
FileEventsListener) will receive FileEvent.Changed notification.
public static final WatchingAttributes Size
FileEventsListener) will receive FileEvent.Changed notification.
public static final WatchingAttributes ModifiedDate
FileEventsListener) will receive FileEvent.Changed notification.
public static final WatchingAttributes AccessDate
FileEventsListener) will receive FileEvent.Changed notification.
| Method Detail |
|---|
public static WatchingAttributes[] values()
for (WatchingAttributes c : WatchingAttributes.values()) System.out.println(c);
public static WatchingAttributes valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||