net.sourceforge.mflow.util
Class FilenameExtensionFilter

java.lang.Object
  extended bynet.sourceforge.mflow.util.FilenameExtensionFilter
All Implemented Interfaces:
java.io.FilenameFilter

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

Author:
carrd

Constructor Summary
FilenameExtensionFilter(java.lang.String extension)
           
 
Method Summary
 boolean accept(java.io.File dir, java.lang.String name)
          Includes all files that end in the specified extension, case insensitively
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilenameExtensionFilter

public FilenameExtensionFilter(java.lang.String extension)
Parameters:
extension - the filename extension to include in the filter
Method Detail

accept

public boolean accept(java.io.File dir,
                      java.lang.String name)
Includes all files that end in the specified extension, case insensitively

Specified by:
accept in interface java.io.FilenameFilter
Parameters:
dir - the parent directory
name - the filename to check
Returns:
whether it should be included


Copyright © 2002-2004 MFlow Group. All Rights Reserved.