public class FileSystemWatcher.WatcherOptions
extends com.jniwrapper.util.FlagSet
FileSystemWatcher
.Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
WatcherOptions()
Creates instance of the
WatcherOptions |
Modifier and Type | Method and Description |
---|---|
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 |
public static final int NOTIFY_CHANGE_FILE_NAME
public static final int NOTIFY_CHANGE_DIR_NAME
public static final int NOTIFY_CHANGE_ATTRIBUTES
public static final int NOTIFY_CHANGE_SIZE
public static final int NOTIFY_CHANGE_LAST_WRITE
public static final int NOTIFY_CHANGE_LAST_ACCESS
public static final int NOTIFY_CHANGE_CREATION
public static final int NOTIFY_CHANGE_SECURITY
public void reset()
public boolean isNotifyChangeFileName()
NOTIFY_CHANGE_FILE_NAME
flagNOTIFY_CHANGE_FILE_NAME
flagpublic void setNotifyChangeFileName(boolean value)
NOTIFY_CHANGE_FILE_NAME
flagvalue
- The value of the NOTIFY_CHANGE_FILE_NAME
flagpublic boolean isNotifyChangeDirName()
NOTIFY_CHANGE_DIR_NAME
flagNOTIFY_CHANGE_DIR_NAME
flagpublic void setNotifyChangeDirName(boolean value)
NOTIFY_CHANGE_DIR_NAME
flagvalue
- The value of the NOTIFY_CHANGE_DIR_NAME
flagpublic boolean isNotifyChangeAttributes()
NOTIFY_CHANGE_ATTRIBUTES
flagNOTIFY_CHANGE_ATTRIBUTES
flagpublic void setNotifyChangeAttributes(boolean value)
NOTIFY_CHANGE_ATTRIBUTES
flagvalue
- The value of the NOTIFY_CHANGE_ATTRIBUTES
flagpublic boolean isNotifyChangeSize()
NOTIFY_CHANGE_SIZE
flagNOTIFY_CHANGE_SIZE
flagpublic void setNotifyChangeSize(boolean value)
NOTIFY_CHANGE_SIZE
flagvalue
- The value of the NOTIFY_CHANGE_SIZE
flagpublic boolean isNotifyLastModified()
NOTIFY_CHANGE_LAST_WRITE
flagNOTIFY_CHANGE_LAST_WRITE
flagpublic void setNotifyLastModified(boolean value)
NOTIFY_CHANGE_LAST_WRITE
flagvalue
- The value of the NOTIFY_CHANGE_LAST_WRITE
flagpublic boolean isNotifyLastAccess()
NOTIFY_CHANGE_LAST_ACCESS
flagNOTIFY_CHANGE_LAST_ACCESS
flagpublic void setNotifyLastAccess(boolean value)
NOTIFY_CHANGE_LAST_ACCESS
flagvalue
- The value of the NOTIFY_CHANGE_LAST_ACCESS
flag