View Javadoc
1   /*
2    * XmlFileFilter.java
3    *
4    * Created on October 25, 2004, 2:19 PM
5    */
6   
7   package gov.noaa.gdsg.xmldbremote.commandLine;
8   
9   import java.io.File;
10  
11  /***
12   * Filters '.xml' files.
13   * @author  tns
14   */
15  public class XmlFileFilter implements java.io.FileFilter {
16      
17      public XmlFileFilter(){};
18      
19      public boolean accept(File pathname){
20          if (pathname.getName().endsWith(".xml")){
21              return true;
22          }
23          else {
24              return false;
25          }
26      }
27  }