com.jniwrapper.win32.io
Class FileSystemWatcher.WatcherOptions

java.lang.Object
  extended bycom.jniwrapper.util.FlagSet
      extended bycom.jniwrapper.win32.io.FileSystemWatcher.WatcherOptions
Enclosing class:
FileSystemWatcher

public class FileSystemWatcher.WatcherOptions
extends com.jniwrapper.util.FlagSet

WatcherOptions class determines a set of properties to configure the behavior of FileSystemWatcher.


Field Summary
static int NOTIFY_CHANGE_ATTRIBUTES
          The value of an attribute of this file, such as last access time, has changed.
static int NOTIFY_CHANGE_CREATION
          The creation time of this file has changed.
static int NOTIFY_CHANGE_DIR_NAME
          A subdirectory has been created, removed, or renamed.
static int NOTIFY_CHANGE_FILE_NAME
          A file has been added, deleted, or renamed in this directory.
static int NOTIFY_CHANGE_LAST_ACCESS
          The last access time of this file has changed.
static int NOTIFY_CHANGE_LAST_WRITE
          The last modification time of this file has changed.
static int NOTIFY_CHANGE_SECURITY
          The security information of this file has changed.
static int NOTIFY_CHANGE_SIZE
          The value of an attribute of this file, such as last access time, has changed.
 
Constructor Summary
FileSystemWatcher.WatcherOptions()
          Creates instance of the WatcherOptions
 
Method Summary
 boolean isNotifyChangeAttributes()
          Returns the value of the NOTIFY_CHANGE_ATTRIBUTES flag
 boolean isNotifyChangeDirName()
          Returns the value of the NOTIFY_CHANGE_DIR_NAME flag
 boolean isNotifyChangeFileName()
          Returns the value of the NOTIFY_CHANGE_FILE_NAME flag
 boolean isNotifyChangeSize()
          Returns the value of the NOTIFY_CHANGE_SIZE flag
 boolean isNotifyLastAccess()
          Returns the value of the NOTIFY_CHANGE_LAST_ACCESS flag
 boolean isNotifyLastModified()
          Returns the value of the NOTIFY_CHANGE_LAST_WRITE flag
 void reset()
          Sets default values
 void setNotifyChangeAttributes(boolean value)
          Sets the value of the NOTIFY_CHANGE_ATTRIBUTES flag
 void setNotifyChangeDirName(boolean value)
          Sets the value of the NOTIFY_CHANGE_DIR_NAME flag
 void setNotifyChangeFileName(boolean value)
          Sets the value of the NOTIFY_CHANGE_FILE_NAME flag
 void setNotifyChangeSize(boolean value)
          Sets the value of the NOTIFY_CHANGE_SIZE flag
 void setNotifyLastAccess(boolean value)
          Sets the value of the NOTIFY_CHANGE_LAST_ACCESS flag
 void setNotifyLastModified(boolean value)
          Sets the value of the NOTIFY_CHANGE_LAST_WRITE flag
 
Methods inherited from class com.jniwrapper.util.FlagSet
add, and, clear, contains, getBit, getBits, getFlags, getMask, or, remove, setBit, setBits, setupFlag, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NOTIFY_CHANGE_FILE_NAME

public static final int NOTIFY_CHANGE_FILE_NAME
A file has been added, deleted, or renamed in this directory.

See Also:
Constant Field Values

NOTIFY_CHANGE_DIR_NAME

public static final int NOTIFY_CHANGE_DIR_NAME
A subdirectory has been created, removed, or renamed.

See Also:
Constant Field Values

NOTIFY_CHANGE_ATTRIBUTES

public static final int NOTIFY_CHANGE_ATTRIBUTES
The value of an attribute of this file, such as last access time, has changed.

See Also:
Constant Field Values

NOTIFY_CHANGE_SIZE

public static final int NOTIFY_CHANGE_SIZE
The value of an attribute of this file, such as last access time, has changed.

See Also:
Constant Field Values

NOTIFY_CHANGE_LAST_WRITE

public static final int NOTIFY_CHANGE_LAST_WRITE
The last modification time of this file has changed.

See Also:
Constant Field Values

NOTIFY_CHANGE_LAST_ACCESS

public static final int NOTIFY_CHANGE_LAST_ACCESS
The last access time of this file has changed.

See Also:
Constant Field Values

NOTIFY_CHANGE_CREATION

public static final int NOTIFY_CHANGE_CREATION
The creation time of this file has changed.

See Also:
Constant Field Values

NOTIFY_CHANGE_SECURITY

public static final int NOTIFY_CHANGE_SECURITY
The security information of this file has changed.

See Also:
Constant Field Values
Constructor Detail

FileSystemWatcher.WatcherOptions

public FileSystemWatcher.WatcherOptions()
Creates instance of the WatcherOptions

Method Detail

reset

public void reset()
Sets default values


isNotifyChangeFileName

public boolean isNotifyChangeFileName()
Returns the value of the NOTIFY_CHANGE_FILE_NAME flag

Returns:
The value of the NOTIFY_CHANGE_FILE_NAME flag

setNotifyChangeFileName

public void setNotifyChangeFileName(boolean value)
Sets the value of the NOTIFY_CHANGE_FILE_NAME flag

Parameters:
value - The value of the NOTIFY_CHANGE_FILE_NAME flag

isNotifyChangeDirName

public boolean isNotifyChangeDirName()
Returns the value of the NOTIFY_CHANGE_DIR_NAME flag

Returns:
The value of the NOTIFY_CHANGE_DIR_NAME flag

setNotifyChangeDirName

public void setNotifyChangeDirName(boolean value)
Sets the value of the NOTIFY_CHANGE_DIR_NAME flag

Parameters:
value - The value of the NOTIFY_CHANGE_DIR_NAME flag

isNotifyChangeAttributes

public boolean isNotifyChangeAttributes()
Returns the value of the NOTIFY_CHANGE_ATTRIBUTES flag

Returns:
The value of the NOTIFY_CHANGE_ATTRIBUTES flag

setNotifyChangeAttributes

public void setNotifyChangeAttributes(boolean value)
Sets the value of the NOTIFY_CHANGE_ATTRIBUTES flag

Parameters:
value - The value of the NOTIFY_CHANGE_ATTRIBUTES flag

isNotifyChangeSize

public boolean isNotifyChangeSize()
Returns the value of the NOTIFY_CHANGE_SIZE flag

Returns:
The value of the NOTIFY_CHANGE_SIZE flag

setNotifyChangeSize

public void setNotifyChangeSize(boolean value)
Sets the value of the NOTIFY_CHANGE_SIZE flag

Parameters:
value - The value of the NOTIFY_CHANGE_SIZE flag

isNotifyLastModified

public boolean isNotifyLastModified()
Returns the value of the NOTIFY_CHANGE_LAST_WRITE flag

Returns:
The value of the NOTIFY_CHANGE_LAST_WRITE flag

setNotifyLastModified

public void setNotifyLastModified(boolean value)
Sets the value of the NOTIFY_CHANGE_LAST_WRITE flag

Parameters:
value - The value of the NOTIFY_CHANGE_LAST_WRITE flag

isNotifyLastAccess

public boolean isNotifyLastAccess()
Returns the value of the NOTIFY_CHANGE_LAST_ACCESS flag

Returns:
The value of the NOTIFY_CHANGE_LAST_ACCESS flag

setNotifyLastAccess

public void setNotifyLastAccess(boolean value)
Sets the value of the NOTIFY_CHANGE_LAST_ACCESS flag

Parameters:
value - The value of the NOTIFY_CHANGE_LAST_ACCESS flag