/**
* Monitors a directory for changes.
+ * The currernt implementation only checks files not directories and does not check for
+ * modifications in subdirectories.
*
* @author Erik Brakkee
*/
contents = newContents;
}
+ /**
+ * Listener interface to be provided by users of the directory monitor to get notified of
+ * changes.
+ *
+ * @author Erik Brakkee
+ */
public static interface Listener {
+ /**
+ * @param aFile File that has changed.
+ */
void fileChanged(File aFile);
+ /**
+ * @param aFile File that was created.
+ */
void fileCreated(File aFile);
+ /**
+ * @param aFile File that was deleted.
+ */
void fileDeleted(File aFile);
}
}