public class FileObserver extends Object implements Observer
Observable
Observable
,
Observer
,
FileWalker
Constructor and Description |
---|
FileObserver(String suffix)
Constructor that allows the user to specify interest in a
particular suffix.
|
Modifier and Type | Method and Description |
---|---|
ArrayList |
getFileList()
Get the complete list of found files.
|
ArrayList |
getFileTimeList()
Get the time stamps of the found files.
|
void |
update(Observable o,
Object arg)
Called when an Observer monitors a change.
|
public FileObserver(String suffix)
If suffix is an empty string then all files will be matched.
public void update(Observable o, Object arg)
public ArrayList getFileList()
public ArrayList getFileTimeList()
getFileList()
Copyright © 2016–2018. All rights reserved.