ucar.unidata.util
Class FileManager.NetcdfExtFilter
java.lang.Object
javax.swing.filechooser.FileFilter
ucar.unidata.util.FileManager.NetcdfExtFilter
- Enclosing class:
- FileManager
public static class FileManager.NetcdfExtFilter
- extends FileFilter
A FileFilter extension for netCDF files.
|
Method Summary |
boolean |
accept(File file)
Accept a file if it is deemed a netCDF file (.nc or .cdf) |
String |
getDescription()
Get the description for this filter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileManager.NetcdfExtFilter
public FileManager.NetcdfExtFilter()
accept
public boolean accept(File file)
- Accept a file if it is deemed a netCDF file (.nc or .cdf)
- Specified by:
accept in class FileFilter
- Parameters:
file -
- Returns:
- true if it has the right suffix
getDescription
public String getDescription()
- Get the description for this filter
- Specified by:
getDescription in class FileFilter
- Returns:
- the description