org.hackystat.telemetry.analyzer.configuration
Class ExtensionFileFilter

java.lang.Object
  extended by org.hackystat.telemetry.analyzer.configuration.ExtensionFileFilter
All Implemented Interfaces:
java.io.FileFilter

public class ExtensionFileFilter
extends java.lang.Object
implements java.io.FileFilter

Provides a file filter that accepts only files with a given case-insensitive extension.

Version:
$Id: ExtensionFileFilter.java,v 1.1.1.1 2005/10/20 23:56:44 johnson Exp $
Author:
Philip M. Johnson

Constructor Summary
ExtensionFileFilter(java.lang.String extension)
          Creates a file filter that accepts only files with the given extension, case-insensitive.
 
Method Summary
 boolean accept(java.io.File file)
          Determines if the passed file should be filtered or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensionFileFilter

public ExtensionFileFilter(java.lang.String extension)
Creates a file filter that accepts only files with the given extension, case-insensitive.

Parameters:
extension - The extension string (typically including the ".").
Method Detail

accept

public boolean accept(java.io.File file)
Determines if the passed file should be filtered or not.

Specified by:
accept in interface java.io.FileFilter
Parameters:
file - The file to be (potentially) filtered.
Returns:
True if the file has the specified extension, false otherwise.