astex
Class UniversalFilenameFilter

java.lang.Object
  extended by astex.UniversalFilenameFilter
All Implemented Interfaces:
java.io.FilenameFilter

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

Implements a FilenameFilter that can take a list of accepted extensions in the construtor.


Constructor Summary
UniversalFilenameFilter(java.lang.String[] extensions)
          Constructor that specifies the accepted extensions.
 
Method Summary
 boolean accept(java.io.File dir, java.lang.String name)
          Tell whether we want to accept this file.
 void setExtensions(java.lang.String[] extensions)
          Set the accepted file name extensions.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniversalFilenameFilter

public UniversalFilenameFilter(java.lang.String[] extensions)
Constructor that specifies the accepted extensions.

Method Detail

setExtensions

public void setExtensions(java.lang.String[] extensions)
Set the accepted file name extensions.


accept

public boolean accept(java.io.File dir,
                      java.lang.String name)
Tell whether we want to accept this file.

Specified by:
accept in interface java.io.FilenameFilter