HiRISE

HiRISE.HiCat.Utilities
Class Roif_Filename_Filter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by HiRISE.HiCat.Utilities.Roif_Filename_Filter

public class Roif_Filename_Filter
extends FileFilter

A very simple FileFilter for selecting roif files. Files are filtered by whether or not they have a .conf extension (case-insensitive).

Version:
1.1
Author:
Rodney Heyd UA/PIRL

Field Summary
static String ID
          Class identification name with source code version and date.
 
Constructor Summary
Roif_Filename_Filter()
           
 
Method Summary
 boolean accept(File input_file)
          Tests if a specified file should be included in the file list.
 String getDescription()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
Class identification name with source code version and date.

See Also:
Constant Field Values
Constructor Detail

Roif_Filename_Filter

public Roif_Filename_Filter()
Method Detail

accept

public boolean accept(File input_file)
Tests if a specified file should be included in the file list. The extension of the input_file checks of the file has a .roif extension. Returns true if the extension matches or if the input file is a directory, otherwise returns false.

Specified by:
accept in class FileFilter
Parameters:
input_file - a file to be tested
Returns:
true if the file was accepted, otherwise false

getDescription

public String getDescription()
Specified by:
getDescription in class FileFilter

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona