|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jniwrapper.win32.io.WatcherStrategy
com.jniwrapper.win32.io.WinNTWatcherStrategy
WinNTWatcherStrategy class implements a watcher strategy based on wrapping
ReadDirectoryChangesW Win API function.
| Constructor Summary | |
WinNTWatcherStrategy(FileSystemWatcher fileSystemWatcher)
|
|
| Method Summary | |
int |
getBufferSize()
Returns the buffer size in bytes. |
void |
setBufferSize(int value)
Sets a new buffer size in bytes. |
void |
start()
Starts watching. |
void |
stop()
Stops watching. |
| Methods inherited from class com.jniwrapper.win32.io.WatcherStrategy |
getFileSystemWatcher, isWatching, setWatching |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WinNTWatcherStrategy(FileSystemWatcher fileSystemWatcher)
| Method Detail |
public void start()
throws FileSystemException
WatcherStrategy
start in class WatcherStrategyFileSystemExceptionpublic void setBufferSize(int value)
BufferSize determinates a number of bytes,
that will be allocated for ReadDirectoryChangesW function to retrieve
file system evevents. By default this buffer is allocated with 100 Kb.
value - is a new buffer sizepublic int getBufferSize()
public void stop()
throws FileSystemException
WatcherStrategy
stop in class WatcherStrategyFileSystemException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||