public class FileObserver extends Object implements Observer
Observable
Observable
,
Observer
,
FileWalker
Modifier and Type | Field and Description |
---|---|
private File |
currentFile |
private ArrayList |
fileList |
private int |
lcv |
private String |
suffix |
private ArrayList |
timeList |
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.
|
private ArrayList fileList
private ArrayList timeList
private File currentFile
private int lcv
private String suffix
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 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.