public class FileSystemWatcher
extends java.lang.Object
Constructor and Description |
---|
FileSystemWatcher(FileChangeListener listener,
int typeRegistryId,
java.lang.String classloadername) |
Modifier and Type | Method and Description |
---|---|
void |
register(java.io.File fileToMonitor)
Add a new file to the list of those being monitored.
|
void |
setPaused(boolean shouldBePaused)
Enables the filesystem watching to be paused/unpaused.
|
void |
shutdown()
Shutdown the thread.
|
public FileSystemWatcher(FileChangeListener listener, int typeRegistryId, java.lang.String classloadername)
public void shutdown()
public void register(java.io.File fileToMonitor)
fileToMonitor
- the file to start monitorpublic void setPaused(boolean shouldBePaused)
shouldBePaused
- watching should be paused?