cds.util
Class ExtensionFilter

java.lang.Object
  extended bycds.util.ExtensionFilter
All Implemented Interfaces:
java.io.FileFilter

class ExtensionFilter
extends java.lang.Object
implements java.io.FileFilter

This class builds a list with all the files having their extension in a given list from a directory tree. A parameter allow to search only the submitted directory or the whole tree

Version:
1.0
Author:
not attributable

Field Summary
private  java.lang.String[] extensions
           
private  java.util.HashMap extlist
           
 
Constructor Summary
ExtensionFilter(java.lang.String[] ext)
           
 
Method Summary
 boolean accept(java.io.File f)
           
 java.lang.String[] getExtensions()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

extlist

private java.util.HashMap extlist

extensions

private java.lang.String[] extensions
Constructor Detail

ExtensionFilter

public ExtensionFilter(java.lang.String[] ext)
Method Detail

accept

public boolean accept(java.io.File f)
Specified by:
accept in interface java.io.FileFilter

getExtensions

public java.lang.String[] getExtensions()