| 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 | Field and Description |
|---|---|
static WatchEvent |
StandardWatchEventKinds.ENTRY_CREATE
Directory entry created.
|
static WatchEvent |
StandardWatchEventKinds.ENTRY_DELETE
Directory entry deleted.
|
static WatchEvent |
StandardWatchEventKinds.ENTRY_MODIFY
Directory entry modified.
|
static WatchEvent |
StandardWatchEventKinds.OVERFLOW
A special event to indicate that events may have been lost or discarded.
|
| Modifier and Type | Method and Description |
|---|---|
WatchEvent |
WatchEvent.kind()
Returns the event kind.
|
| 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.
|