uk.ac.ebi.adfconverter.library
Class NameFilter

java.lang.Object
  extended byuk.ac.ebi.adfconverter.library.NameFilter
All Implemented Interfaces:
java.io.FilenameFilter

public class NameFilter
extends java.lang.Object
implements java.io.FilenameFilter

implements java.io.FilenameFilter interface. Uses to filter files in a directory following file name

Since:
20 08 04
Version:
$Revision: 1 $
Author:
Pierre MARGUERITE

Constructor Summary
NameFilter()
          contructor of a filter
NameFilter(java.lang.String[] extensions)
          contructor of a filter following an array of file name
 
Method Summary
 boolean accept(java.io.File dir, java.lang.String name)
          retrieved if a file accepted by the filter.
 void addName(java.lang.String name)
          Add a fime name filter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameFilter

public NameFilter()
contructor of a filter


NameFilter

public NameFilter(java.lang.String[] extensions)
contructor of a filter following an array of file name

Parameters:
extensions - array of accepted extensions
Method Detail

accept

public boolean accept(java.io.File dir,
                      java.lang.String name)
retrieved if a file accepted by the filter. Implements accept method from Interface

Specified by:
accept in interface java.io.FilenameFilter
Parameters:
dir - path to the directory containing the file to test
name - the name of the file to test
Returns:
true, if the filter accepts the file. false , otherwise

addName

public void addName(java.lang.String name)
Add a fime name filter

Parameters:
name - a file name to take in count


European Bioinformatics InstituteMicroarray Informatics Team