ucar.unidata.util
Class FileManager.NetcdfExtFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by ucar.unidata.util.FileManager.NetcdfExtFilter
Enclosing class:
FileManager

public static class FileManager.NetcdfExtFilter
extends FileFilter

A FileFilter extension for netCDF files.


Constructor Summary
FileManager.NetcdfExtFilter()
           
 
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
 

Constructor Detail

FileManager.NetcdfExtFilter

public FileManager.NetcdfExtFilter()
Method Detail

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