Module jcifs

Interface FileNotifyInformation

All Known Implementing Classes:
FileNotifyInformationImpl

public interface FileNotifyInformation
File notification information
Author:
mbechler
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    File has been added
    static final int
    File stream has been added
    static final int
    File has been modified
    static final int
    File stream has modified
    static final int
    File has been removed
    static final int
    File has been removed by delete operation
    static final int
    File stream has been removed
    static final int
    File has been renamed (new name)
    static final int
    File has been renamed (old name)
    static final int
    Any attribute change in the watched directory or subtree causes a change notification wait operation to return.
    static final int
    Any change to the creation time of files in the watched directory or subtree causes a change notification wait operation to return.
    static final int
    Any directory-name change in the watched directory or subtree causes a change notification wait operation to return.
    static final int
    Any 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 int
    Any file name change in the watched directory or subtree causes a change notification wait operation to return.
    static final int
    Any change to the last access time of files in the watched directory or subtree causes a change notification wait operation to return.
    static final int
    Any change to the last write-time of files in the watched directory or subtree causes a change notification wait operation to return.
    static final int
    Both FILE_NOTIFY_CHANGE_FILE_NAME and FILE_NOTIFY_CHANGE_DIR_NAME
    static final int
    Any security-descriptor change in the watched directory or subtree causes a change notification wait operation to return.
    static final int
    Any file-size change in the watched directory or subtree causes a change notification wait operation to return.
    static final int
    Any change to a named stream of a file in the watched directory or subtree causes a change notification wait operation to return.
    static final int
    Any 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 int
    Any 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 Type
    Method
    Description
    int
    Gets 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_NAME
      Any 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_NAME
      Any 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_NAME
      Both FILE_NOTIFY_CHANGE_FILE_NAME and FILE_NOTIFY_CHANGE_DIR_NAME
      See Also:
    • FILE_NOTIFY_CHANGE_ATTRIBUTES

      static final int FILE_NOTIFY_CHANGE_ATTRIBUTES
      Any 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_SIZE
      Any 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_WRITE
      Any 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_ACCESS
      Any 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_CREATION
      Any 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_EA
      Any 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_SECURITY
      Any 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_NAME
      Any 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_SIZE
      Any 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_WRITE
      Any 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_ADDED
      File has been added
      See Also:
    • FILE_ACTION_REMOVED

      static final int FILE_ACTION_REMOVED
      File has been removed
      See Also:
    • FILE_ACTION_MODIFIED

      static final int FILE_ACTION_MODIFIED
      File has been modified
      See Also:
    • FILE_ACTION_RENAMED_OLD_NAME

      static final int FILE_ACTION_RENAMED_OLD_NAME
      File has been renamed (old name)
      See Also:
    • FILE_ACTION_RENAMED_NEW_NAME

      static final int FILE_ACTION_RENAMED_NEW_NAME
      File has been renamed (new name)
      See Also:
    • FILE_ACTION_ADDED_STREAM

      static final int FILE_ACTION_ADDED_STREAM
      File stream has been added
      See Also:
    • FILE_ACTION_REMOVED_STREAM

      static final int FILE_ACTION_REMOVED_STREAM
      File stream has been removed
      See Also:
    • FILE_ACTION_MODIFIED_STREAM

      static final int FILE_ACTION_MODIFIED_STREAM
      File stream has modified
      See Also:
    • FILE_ACTION_REMOVED_BY_DELETE

      static final int FILE_ACTION_REMOVED_BY_DELETE
      File 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