org.problets.lib
Class MyFileFilter

java.lang.Object
  extended by org.problets.lib.MyFileFilter
All Implemented Interfaces:
java.io.FileFilter

public class MyFileFilter
extends java.lang.Object
implements java.io.FileFilter

Class that provides the filter for accessing files from a directory

Author:
Amruth Kumar

Constructor Summary
MyFileFilter(java.lang.String inExtension)
          Constructor for file filter to pick files with the given extension
 
Method Summary
 boolean accept(java.io.File fileName)
          Could have a constructor to pick extensions from a comma-separated string
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyFileFilter

public MyFileFilter(java.lang.String inExtension)
Constructor for file filter to pick files with the given extension

Method Detail

accept

public boolean accept(java.io.File fileName)
Could have a constructor to pick extensions from a comma-separated string

Specified by:
accept in interface java.io.FileFilter