public class TreeWatcherNIO extends AbstractNIO2Watcher
NIO2 watcher implementation for systems which support ExtendedWatchEventModifier.FILE_TREE (windows)
Java 7 (NIO2) watch a directory (or tree) for changes to files.
classLoaderListeners, dispatcher, keys, KINDS, LOGGER, watcher| Constructor and Description |
|---|
TreeWatcherNIO()
Instantiates a new tree watcher nio.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
registerAll(Path watched,
Path target)
Register the given directory, with the
WatchService.
|
addDirectory, addEventListener, addEventListener, closeClassLoader, run, stoppublic TreeWatcherNIO()
throws IOException
IOException - Signals that an I/O exception has occurred.protected void registerAll(Path watched, Path target) throws IOException
registerAll in class AbstractNIO2Watcherwatched - the watchedtarget - the targetIOException - Signals that an I/O exception has occurred.Copyright © 2018. All rights reserved.