Package net.anotheria.anodoc.util
Class FileWatcher
- java.lang.Object
-
- net.anotheria.anodoc.util.FileWatcher
-
public abstract class FileWatcher extends java.lang.ObjectClass for watching file existence. If file not exists - FileWatcher creates it and fire onChange event.- Version:
- $Id: $Id
- Author:
- dsilenko
-
-
Constructor Summary
Constructors Constructor Description FileWatcher(java.lang.String aFilePath, long aPeriod)Constructor for FileWatcher.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidonChange()Event when file was not exist.voidstart()Starting file watching task.voidstop()Stopping file watching task.
-