hydroScalingAPI.util.fileUtilities
Class NameDotFilter
java.lang.Object
javax.swing.filechooser.FileFilter
hydroScalingAPI.util.fileUtilities.NameDotFilter
- All Implemented Interfaces:
- java.io.FileFilter
public class NameDotFilter
- extends javax.swing.filechooser.FileFilter
- 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 |
NameDotFilter(java.lang.String name,
java.lang.String ext)
Creates new NameDotFilter |
|
Method Summary |
boolean |
accept(java.io.File file)
The accept criteria based on the file name |
java.lang.String |
getDescription()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NameDotFilter
public NameDotFilter(java.lang.String name,
java.lang.String ext)
- Creates new NameDotFilter
- Parameters:
ext - The desired extensionname - 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- Specified by:
accept in class javax.swing.filechooser.FileFilter
- Parameters:
file - The file to compare with
- Returns:
- A boolean flag indicating sucess or failure of the test
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription in class javax.swing.filechooser.FileFilter
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.