jsystem.utils
Class ExtentionFilter
java.lang.Object
jsystem.utils.ExtentionFilter
- All Implemented Interfaces:
- FilenameFilter
- public class ExtentionFilter
- extends Object
- implements FilenameFilter
This filter use to filtering ends of file names.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExtentionFilter
public ExtentionFilter(String endWith)
- Create instance of ExtentionFilter
- Parameters:
endWith
- file names end
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