public abstract class FileWatcher
extends Thread
| Constructor and Description |
|---|
FileWatcher(File file)
Instantiates a new file watcher.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isStopped()
Checks if is stopped.
|
abstract void |
onChange()
Called of file change.
|
void |
run() |
void |
stopThread()
Stop thread.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic FileWatcher(File file)
file - the filepublic boolean isStopped()
public void stopThread()
public abstract void onChange()
public void run()
run in interface Runnablerun in class ThreadCopyright © 2010-2020 Toolsverse. All Rights Reserved.