Improved FileWatch class comment and merged in the interface.
This commit is contained in:
parent
62923e7f60
commit
9215c528f0
3 changed files with 23 additions and 47 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue