|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.teamdev.filewatch.FileWatcher
com.teamdev.filewatch.win.NTFSWatcher
public final class NTFSWatcher
Provides the functionality for monitoring file system events on NTFS file systems.
Field Summary |
---|
Fields inherited from class com.teamdev.filewatch.FileWatcher |
---|
FAKE_RENAMES_OPTION, MOVE_EVENTS_OPTION, WATCHING_FOLDER_REMOVED |
Constructor Summary | |
---|---|
NTFSWatcher(java.io.File folder)
Creates new NTFS file system watcher. |
Method Summary | |
---|---|
int |
getBufferSize()
Returns the size of the data buffer that receives events from the file system. |
protected java.util.List<FileEvent> |
readEvents()
Reads next portion of file system events. |
protected void |
release()
Releases all native resources which are associated with a watcher instance. |
void |
setBufferSize(int bufferSize)
Sets the new size of the data buffer that receives events from the file system. |
protected void |
startWatching()
Notifies watcher that the watching is going to be started. |
protected void |
stopWatching()
Notifies watcher that the watching is going to be stopped. |
Methods inherited from class com.teamdev.filewatch.FileWatcher |
---|
accept, addFileEventsListener, addListener, addListener, addWatcherListener, create, getFilter, getFolder, getOptions, isRunning, removeFileEventsListener, removeListener, removeListener, removeWatcherListener, resetOptions, setFilter, setOptions, setOptions, setRunning, setRunning, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NTFSWatcher(java.io.File folder)
folder
- watching folderMethod Detail |
---|
public int getBufferSize()
public void setBufferSize(int bufferSize)
bufferSize
- the size of new bufferprotected void startWatching()
FileWatcher
startWatching
in class FileWatcher
protected java.util.List<FileEvent> readEvents()
FileWatcher
readEvents
in class FileWatcher
protected void stopWatching()
FileWatcher
stopWatching
in class FileWatcher
protected void release()
FileWatcher
release
in class FileWatcher
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |