| Constructor and Description |
|---|
DefaultWatcher() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isWatching(java.nio.file.Path path) |
void |
register(java.nio.file.Path path) |
java.nio.file.WatchKey |
take() |
void |
unregister(java.nio.file.Path path) |
public DefaultWatcher()
throws java.io.IOException
java.io.IOExceptionpublic void register(java.nio.file.Path path)
throws java.io.IOException
public void unregister(java.nio.file.Path path)
throws java.io.IOException
unregister in interface Watcherjava.io.IOExceptionpublic boolean isWatching(java.nio.file.Path path)
isWatching in interface Watcherpublic java.nio.file.WatchKey take()
throws java.lang.InterruptedException
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException