hydroScalingAPI.util.fileUtilities
Class NameEndingFilter
java.lang.Object
hydroScalingAPI.util.fileUtilities.NameEndingFilter
- All Implemented Interfaces:
- java.io.FileFilter
public class NameEndingFilter
- extends java.lang.Object
- implements java.io.FileFilter
An implementation of the FileFilter that allows files with a
predetermined extension and a predetermined initial label (e.g. corresponds to the wildcard
name*ext)
- Author:
- Ricardo Mantilla
|
Constructor Summary |
NameEndingFilter(java.lang.String name,
java.lang.String end)
Creates new NameEndingFilter |
|
Method Summary |
boolean |
accept(java.io.File file)
The accept criteria based on the file name |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NameEndingFilter
public NameEndingFilter(java.lang.String name,
java.lang.String end)
- Creates new NameEndingFilter
- Parameters:
end - The desired file name ending (last letters in the extension)name - The base name for the group of files
accept
public boolean accept(java.io.File file)
- The accept criteria based on the file name
- Specified by:
accept in interface java.io.FileFilter
- Parameters:
file - The file to compare with
- Returns:
- A boolean flag indicating sucess or failure of the test
CUENCAS was initially developed by Ricardo Mantilla at the University of Colorado under the supervision of Dr. Vijay K. Gupta. We wish to recognize the support from the National Science Fundation.