public final class FileSystemWatcher extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
FileSystemWatcher.PathEventListener
Interface to implement to receive events.
|
| Modifier and Type | Method and Description |
|---|---|
static Runnable |
watch(Path path,
FileSystemWatcher.PathEventListener listener)
Watch the given path.
|
static Runnable |
watch(Path path,
FileSystemWatcher.PathEventListener listener,
WatchEvent.Kind<?>... kinds)
Watch the given path.
|
public static Runnable watch(Path path, FileSystemWatcher.PathEventListener listener, WatchEvent.Kind<?>... kinds) throws IOException
IOExceptionpublic static Runnable watch(Path path, FileSystemWatcher.PathEventListener listener) throws IOException
IOExceptionCopyright © 2019. All rights reserved.