jsystem.utils
Class ExtentionFilter

java.lang.Object
  extended byjsystem.utils.ExtentionFilter
All Implemented Interfaces:
FilenameFilter

public class ExtentionFilter
extends Object
implements FilenameFilter

This filter use to filtering ends of file names.


Constructor Summary
ExtentionFilter(String endWith)
          Create instance of ExtentionFilter
 
Method Summary
 boolean accept(File dir, String name)
          Filter files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtentionFilter

public ExtentionFilter(String endWith)
Create instance of ExtentionFilter

Parameters:
endWith - file names end
Method Detail

accept

public boolean accept(File dir,
                      String name)
Filter files.

Specified by:
accept in interface FilenameFilter
Parameters:
name - file name
Returns:
true if name ends same as variable set in constructor