talx x1.0.5

talx.util
Class ExtensionFilenameFilter

java.lang.Object
  extended bytalx.util.ExtensionFilenameFilter
All Implemented Interfaces:
java.io.FilenameFilter

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

FilenameFilter based on matching filename extensions.


Constructor Summary
ExtensionFilenameFilter(java.lang.String ext)
          Creates a new filename filter that accepts any files that end in the given extension.
ExtensionFilenameFilter(java.lang.String[] ext)
          Creates a new filename filter that accepts any files that end in any of the strings in the given array.
 
Method Summary
 boolean accept(java.io.File dir, java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensionFilenameFilter

public ExtensionFilenameFilter(java.lang.String[] ext)
Creates a new filename filter that accepts any files that end in any of the strings in the given array.


ExtensionFilenameFilter

public ExtensionFilenameFilter(java.lang.String ext)
Creates a new filename filter that accepts any files that end in the given extension.

Method Detail

accept

public boolean accept(java.io.File dir,
                      java.lang.String name)
Specified by:
accept in interface java.io.FilenameFilter

talx x1.0.5

© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.