Crossfire JXClient, Trunk
|
Static Public Member Functions | |
static void | main (String[] args) throws IOException |
Private Member Functions | |
void | register (Path dir) throws IOException |
void | registerAll (final Path start) throws IOException |
Private Attributes | |
int | count |
final boolean | recursive |
boolean | trace = false |
final WatchService | watcher |
Example to watch a directory (or tree) for changes to files.
Definition at line 51 of file WatchDir.java.
|
static |
Definition at line 168 of file WatchDir.java.
References recursive.
|
private |
Register the given directory with the WatchService
Definition at line 66 of file WatchDir.java.
|
private |
Register the given directory, and all its sub-directories, with the WatchService.
Definition at line 77 of file WatchDir.java.
|
private |
Definition at line 56 of file WatchDir.java.
Referenced by register().
|
private |
Definition at line 54 of file WatchDir.java.
Referenced by main().
|
private |
Definition at line 55 of file WatchDir.java.
Referenced by register().
|
private |
Definition at line 53 of file WatchDir.java.
Referenced by register().