Package name.pachler.nio.file.impl
Class PathWatchService
java.lang.Object
name.pachler.nio.file.WatchService
name.pachler.nio.file.impl.PathWatchService
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
BSDPathWatchService,LinuxPathWatchService,PollingPathWatchService,WindowsPathWatchService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PathImplcheckAndCastToPathImpl(Path path) protected intmakeFlagMask(WatchEvent.Kind<?>[] kinds, WatchEvent.Modifier[] modifiers) abstract PathWatchKeyregister(Path path, WatchEvent.Kind<?>[] kinds, WatchEvent.Modifier[] modifiers) Methods inherited from class name.pachler.nio.file.WatchService
close, poll, poll, take
-
Field Details
-
FLAG_WATCH_SUBTREE
protected static final int FLAG_WATCH_SUBTREE- See Also:
-
FLAG_ACCURATE
protected static final int FLAG_ACCURATE- See Also:
-
FLAG_FILTER_ENTRY_RENAME_FROM
protected static final int FLAG_FILTER_ENTRY_RENAME_FROM- See Also:
-
FLAG_FILTER_ENTRY_RENAME_TO
protected static final int FLAG_FILTER_ENTRY_RENAME_TO- See Also:
-
FLAG_FILTER_ENTRY_CREATE
protected static final int FLAG_FILTER_ENTRY_CREATE- See Also:
-
FLAG_FILTER_ENTRY_DELETE
protected static final int FLAG_FILTER_ENTRY_DELETE- See Also:
-
FLAG_FILTER_ENTRY_MODIFY
protected static final int FLAG_FILTER_ENTRY_MODIFY- See Also:
-
FLAG_FILTER_KEY_INVALID
protected static final int FLAG_FILTER_KEY_INVALID- See Also:
-
-
Constructor Details
-
PathWatchService
public PathWatchService()
-
-
Method Details
-
register
public abstract PathWatchKey register(Path path, WatchEvent.Kind<?>[] kinds, WatchEvent.Modifier[] modifiers) throws IOException - Throws:
IOException
-
makeFlagMask
-
checkAndCastToPathImpl
- Throws:
IOException
-