#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2002
    Posts
    6
    Rep Power
    0

    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. #2
  3. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2002
    Location
    India
    Posts
    7
    Rep 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;
    }

IMN logo majestic logo threadwatch logo seochat tools logo