public abstract class PathWatchService extends WatchService
Modifier and Type | Field and Description |
---|---|
protected static int |
FLAG_ACCURATE |
protected static int |
FLAG_FILTER_ENTRY_CREATE |
protected static int |
FLAG_FILTER_ENTRY_DELETE |
protected static int |
FLAG_FILTER_ENTRY_MODIFY |
protected static int |
FLAG_FILTER_ENTRY_RENAME_FROM |
protected static int |
FLAG_FILTER_ENTRY_RENAME_TO |
protected static int |
FLAG_FILTER_KEY_INVALID |
protected static int |
FLAG_WATCH_SUBTREE |
Constructor and Description |
---|
PathWatchService() |
Modifier and Type | Method and Description |
---|---|
protected PathImpl |
checkAndCastToPathImpl(Path path) |
protected int |
makeFlagMask(WatchEvent.Kind<?>[] kinds,
WatchEvent.Modifier[] modifiers) |
abstract PathWatchKey |
register(Path path,
WatchEvent.Kind<?>[] kinds,
WatchEvent.Modifier[] modifiers) |
close, poll, poll, take
protected static final int FLAG_WATCH_SUBTREE
protected static final int FLAG_ACCURATE
protected static final int FLAG_FILTER_ENTRY_RENAME_FROM
protected static final int FLAG_FILTER_ENTRY_RENAME_TO
protected static final int FLAG_FILTER_ENTRY_CREATE
protected static final int FLAG_FILTER_ENTRY_DELETE
protected static final int FLAG_FILTER_ENTRY_MODIFY
protected static final int FLAG_FILTER_KEY_INVALID
public abstract PathWatchKey register(Path path, WatchEvent.Kind<?>[] kinds, WatchEvent.Modifier[] modifiers) throws java.io.IOException
java.io.IOException
protected int makeFlagMask(WatchEvent.Kind<?>[] kinds, WatchEvent.Modifier[] modifiers)