stimulusdelayrewardanalyzer
Class ExtensionFilter

java.lang.Object
  |
  +--stimulusdelayrewardanalyzer.ExtensionFilter
All Implemented Interfaces:
java.io.FilenameFilter

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

Accept files that have one of the provided extension.


Constructor Summary
ExtensionFilter(java.lang.String[] extensionsList)
          Construct a filter that accept any file ending with one of the provided extension.
 
Method Summary
 boolean accept(java.io.File dir, java.lang.String name)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensionFilter

public ExtensionFilter(java.lang.String[] extensionsList)
Construct a filter that accept any file ending with one of the provided extension. The . should not be in the string.

Parameters:
extensionsList - List of extensions allowed.
Method Detail

accept

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