|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
Class in the java.io package
I found a class in the java.io package that I am not sure what it does. I think it's a FileFilter object...but i'm still looking into how it
works. Any thoughts? |
|
#2
|
|||
|
|||
|
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; } |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > Class in the java.io package |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|