FileSystemWatcherNative Class

Java wrapper of Windows native APIs for file system monitoring. The name of the methods in this class corresponds to the name of Windows native APIs. You might want to check Windows Platform SDK for detailed technical information.

Also note that if you change the package or method name of this class, you need to use javah to regenerate a C header file and recompile the dll file. As far as I know, there is no way around it because of the way JVM binds to native dll.

Constructors

There are no public constructors.

Properties

INFINITE
A constant value representing infinite.
WAIT_FAILED
A wait return value indicating a failed wait.
WAIT_ABANDONED
A wait return value indicating that the specified object is a mutex object that was not released by the thread.
WAIT_OBJECT_0
A wait return value indicating The state of the specified object is signaled.
WAIT_TIMEOUT
The time-out interval elapsed, and the object's state is nonsignaled.

Static Methods

FindFirstChangeNotification( String lpPathName, boolean bWatchSubtree, int dwNotifyFilter ) returns native long
FindNextChangeNotification( long hChangeHandle ) returns native void
FindCloseChangeNotification( long hChangeHandle ) returns native void
WaitForSingleObject( long hHandle, int dwTimeoutMilliseconds ) returns native int
ReadDirectoryChangesW( ) returns native String