name.pachler.nio.file.impl
Class PathWatchService

java.lang.Object
  extended by name.pachler.nio.file.WatchService
      extended by name.pachler.nio.file.impl.PathWatchService
All Implemented Interfaces:
java.io.Closeable
Direct Known Subclasses:
BSDPathWatchService, LinuxPathWatchService, PollingPathWatchService, WindowsPathWatchService

public abstract class PathWatchService
extends WatchService


Field Summary
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 Summary
PathWatchService()
           
 
Method Summary
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)
           
 
Methods inherited from class name.pachler.nio.file.WatchService
close, poll, poll, take
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FLAG_WATCH_SUBTREE

protected static final int FLAG_WATCH_SUBTREE
See Also:
Constant Field Values

FLAG_ACCURATE

protected static final int FLAG_ACCURATE
See Also:
Constant Field Values

FLAG_FILTER_ENTRY_RENAME_FROM

protected static final int FLAG_FILTER_ENTRY_RENAME_FROM
See Also:
Constant Field Values

FLAG_FILTER_ENTRY_RENAME_TO

protected static final int FLAG_FILTER_ENTRY_RENAME_TO
See Also:
Constant Field Values

FLAG_FILTER_ENTRY_CREATE

protected static final int FLAG_FILTER_ENTRY_CREATE
See Also:
Constant Field Values

FLAG_FILTER_ENTRY_DELETE

protected static final int FLAG_FILTER_ENTRY_DELETE
See Also:
Constant Field Values

FLAG_FILTER_ENTRY_MODIFY

protected static final int FLAG_FILTER_ENTRY_MODIFY
See Also:
Constant Field Values

FLAG_FILTER_KEY_INVALID

protected static final int FLAG_FILTER_KEY_INVALID
See Also:
Constant Field Values
Constructor Detail

PathWatchService

public PathWatchService()
Method Detail

register

public abstract PathWatchKey register(Path path,
                                      WatchEvent.Kind<?>[] kinds,
                                      WatchEvent.Modifier[] modifiers)
                               throws java.io.IOException
Throws:
java.io.IOException

makeFlagMask

protected int makeFlagMask(WatchEvent.Kind<?>[] kinds,
                           WatchEvent.Modifier[] modifiers)

checkAndCastToPathImpl

protected PathImpl checkAndCastToPathImpl(Path path)
                                   throws java.io.IOException
Throws:
java.io.IOException