- All Known Implementing Classes:
FileNotifyInformationImpl
public interface FileNotifyInformation
File notification information
- Author:
- mbechler
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intFile has been addedstatic final intFile stream has been addedstatic final intFile has been modifiedstatic final intFile stream has modifiedstatic final intFile has been removedstatic final intFile has been removed by delete operationstatic final intFile stream has been removedstatic final intFile has been renamed (new name)static final intFile has been renamed (old name)static final intAny attribute change in the watched directory or subtree causes a change notification wait operation to return.static final intAny change to the creation time of files in the watched directory or subtree causes a change notification wait operation to return.static final intAny directory-name change in the watched directory or subtree causes a change notification wait operation to return.static final intAny change to the extended attributes (EA) of a file in the watched directory or subtree causes a change notification wait operation to return.static final intAny file name change in the watched directory or subtree causes a change notification wait operation to return.static final intAny change to the last access time of files in the watched directory or subtree causes a change notification wait operation to return.static final intAny change to the last write-time of files in the watched directory or subtree causes a change notification wait operation to return.static final intBothFILE_NOTIFY_CHANGE_FILE_NAMEandFILE_NOTIFY_CHANGE_DIR_NAMEstatic final intAny security-descriptor change in the watched directory or subtree causes a change notification wait operation to return.static final intAny file-size change in the watched directory or subtree causes a change notification wait operation to return.static final intAny change to a named stream of a file in the watched directory or subtree causes a change notification wait operation to return.static final intAny change in the size of a named stream of a file in the watched directory or subtree causes a change notification wait operation to return.static final intAny change to the data in a named stream of a file in the watched directory or subtree causes a change notification wait operation to return. -
Method Summary
Modifier and TypeMethodDescriptionintGets the action that triggered this notification.Gets the name of the file affected by the action.
-
Field Details
-
FILE_NOTIFY_CHANGE_FILE_NAME
static final int FILE_NOTIFY_CHANGE_FILE_NAMEAny file name change in the watched directory or subtree causes a change notification wait operation to return. Changes include renaming, creating, or deleting a file.- See Also:
-
FILE_NOTIFY_CHANGE_DIR_NAME
static final int FILE_NOTIFY_CHANGE_DIR_NAMEAny directory-name change in the watched directory or subtree causes a change notification wait operation to return. Changes include creating or deleting a directory.- See Also:
-
FILE_NOTIFY_CHANGE_NAME
static final int FILE_NOTIFY_CHANGE_NAMEBothFILE_NOTIFY_CHANGE_FILE_NAMEandFILE_NOTIFY_CHANGE_DIR_NAME- See Also:
-
FILE_NOTIFY_CHANGE_ATTRIBUTES
static final int FILE_NOTIFY_CHANGE_ATTRIBUTESAny attribute change in the watched directory or subtree causes a change notification wait operation to return.- See Also:
-
FILE_NOTIFY_CHANGE_SIZE
static final int FILE_NOTIFY_CHANGE_SIZEAny file-size change in the watched directory or subtree causes a change notification wait operation to return. The operating system detects a change in file size only when the file is written to the disk. For operating systems that use extensive caching, detection occurs only when the cache is sufficiently flushed.s- See Also:
-
FILE_NOTIFY_CHANGE_LAST_WRITE
static final int FILE_NOTIFY_CHANGE_LAST_WRITEAny change to the last write-time of files in the watched directory or subtree causes a change notification wait operation to return. The operating system detects a change to the last write-time only when the file is written to the disk. For operating systems that use extensive caching, detection occurs only when the cache is sufficiently flushed.- See Also:
-
FILE_NOTIFY_CHANGE_LAST_ACCESS
static final int FILE_NOTIFY_CHANGE_LAST_ACCESSAny change to the last access time of files in the watched directory or subtree causes a change notification wait operation to return.- See Also:
-
FILE_NOTIFY_CHANGE_CREATION
static final int FILE_NOTIFY_CHANGE_CREATIONAny change to the creation time of files in the watched directory or subtree causes a change notification wait operation to return.- See Also:
-
FILE_NOTIFY_CHANGE_EA
static final int FILE_NOTIFY_CHANGE_EAAny change to the extended attributes (EA) of a file in the watched directory or subtree causes a change notification wait operation to return.- See Also:
-
FILE_NOTIFY_CHANGE_SECURITY
static final int FILE_NOTIFY_CHANGE_SECURITYAny security-descriptor change in the watched directory or subtree causes a change notification wait operation to return.- See Also:
-
FILE_NOTIFY_CHANGE_STREAM_NAME
static final int FILE_NOTIFY_CHANGE_STREAM_NAMEAny change to a named stream of a file in the watched directory or subtree causes a change notification wait operation to return.- See Also:
-
FILE_NOTIFY_CHANGE_STREAM_SIZE
static final int FILE_NOTIFY_CHANGE_STREAM_SIZEAny change in the size of a named stream of a file in the watched directory or subtree causes a change notification wait operation to return.- See Also:
-
FILE_NOTIFY_CHANGE_STREAM_WRITE
static final int FILE_NOTIFY_CHANGE_STREAM_WRITEAny change to the data in a named stream of a file in the watched directory or subtree causes a change notification wait operation to return.- See Also:
-
FILE_ACTION_ADDED
static final int FILE_ACTION_ADDEDFile has been added- See Also:
-
FILE_ACTION_REMOVED
static final int FILE_ACTION_REMOVEDFile has been removed- See Also:
-
FILE_ACTION_MODIFIED
static final int FILE_ACTION_MODIFIEDFile has been modified- See Also:
-
FILE_ACTION_RENAMED_OLD_NAME
static final int FILE_ACTION_RENAMED_OLD_NAMEFile has been renamed (old name)- See Also:
-
FILE_ACTION_RENAMED_NEW_NAME
static final int FILE_ACTION_RENAMED_NEW_NAMEFile has been renamed (new name)- See Also:
-
FILE_ACTION_ADDED_STREAM
static final int FILE_ACTION_ADDED_STREAMFile stream has been added- See Also:
-
FILE_ACTION_REMOVED_STREAM
static final int FILE_ACTION_REMOVED_STREAMFile stream has been removed- See Also:
-
FILE_ACTION_MODIFIED_STREAM
static final int FILE_ACTION_MODIFIED_STREAMFile stream has modified- See Also:
-
FILE_ACTION_REMOVED_BY_DELETE
static final int FILE_ACTION_REMOVED_BY_DELETEFile has been removed by delete operation- See Also:
-
-
Method Details
-
getAction
int getAction()Gets the action that triggered this notification.- Returns:
- the action triggering this entry (FILE_ACTION_*)
-
getFileName
String getFileName()Gets the name of the file affected by the action.- Returns:
- the file name affected by the action
-