| Package | Description |
|---|---|
| java.nio.file |
Defines interfaces and classes for the Java virtual machine to access files, file attributes, and file systems.
|
| Modifier and Type | Method and Description |
|---|---|
abstract WatchService |
FileSystem.newWatchService()
Constructs a new
WatchService
(optional operation).
|
| Modifier and Type | Method and Description |
|---|---|
WatchKey |
Path.register(WatchService
Registers the file located by this path with a watch service.
|
WatchKey |
Watchable.register(WatchService
Registers an object with a watch service.
|
WatchKey |
Path.register(WatchService
Registers the file located by this path with a watch service.
|
WatchKey |
Watchable.register(WatchService
Registers an object with a watch service.
|