com.jniwrapper.win32.io
Class WatcherStrategy

java.lang.Object
  extended by com.jniwrapper.win32.io.WatcherStrategy
Direct Known Subclasses:
Win9xWatcherStrategy, WinNTWatcherStrategy

public abstract class WatcherStrategy
extends java.lang.Object

WatcherStrategy class is a base class for various watching strategies used in FileSystemWatcher class.


Constructor Summary
WatcherStrategy(FileSystemWatcher fileSystemWatcher)
          Creates a strategy for a specified watcher FileSystemWatcher
 
Method Summary
 FileSystemWatcher getFileSystemWatcher()
           
protected  boolean isWatching()
           
protected  void setWatching(boolean value)
           
abstract  void start()
          Starts watching.
abstract  void stop()
          Stops watching.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WatcherStrategy

public WatcherStrategy(FileSystemWatcher fileSystemWatcher)
Creates a strategy for a specified watcher FileSystemWatcher

Parameters:
fileSystemWatcher - a wacher which will use this strategy.
Method Detail

getFileSystemWatcher

public FileSystemWatcher getFileSystemWatcher()
Returns:
a watcher.

isWatching

protected boolean isWatching()

setWatching

protected void setWatching(boolean value)

start

public abstract void start()
                    throws FileSystemException
Starts watching.

Throws:
FileSystemException

stop

public abstract void stop()
                   throws FileSystemException
Stops watching.

Throws:
FileSystemException