
March 26th, 2002, 11:40 PM
|
|
Member
|
|
Join Date: Mar 2002
Location: India
Posts: 7
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Filefilter is used to filter files from a given directory...its actually an interface and u have to implement that interface to return files with appropriate extensions...
for ex, if u need to get all html files from an given directory the implementation of accept method will look like this
public boolean accept(File file){
if(file.endsWith("html"))
return true;
else
return false;
}
|