Improved FileWatch class comment and merged in the interface.

This commit is contained in:
Ziver Koc 2018-11-03 20:07:33 +01:00
parent 62923e7f60
commit 9215c528f0
3 changed files with 23 additions and 47 deletions

View file

@ -26,10 +26,9 @@ package zutil.io.file;
import java.io.File;
import java.io.FileNotFoundException;
import java.net.URISyntaxException;
public class FileChangedTest implements FileChangeListener{
public class FileChangedTest implements FileWatcher.FileChangeListener {
public static void main(String[] args) throws FileNotFoundException{
FileWatcher watcher = new FileWatcher(FileUtil.find("test.txt"));
watcher.setListener(new FileChangedTest());