Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/flexstor/common/io/file/filters/FileFilter.java


1   /*
2    * FileFilter.java
3    *
4    * Copyright $Date: 2003/08/11 02:22:47 $ FLEXSTOR.net Inc.
5    *
6    * This work is licensed for use and distribution under license terms found at
7    * http://www.flexstor.org/license.html
8    *
9    */
10  
11  package com.flexstor.common.io.file.filters;
12  
13  import java.io.File;
14  import java.io.FilenameFilter;
15  
16  public class FileFilter
17     implements FilenameFilter
18  {
19     public boolean accept( File file, String sFileName )
20     {
21        if ( file != null )
22           return ( new File( file, sFileName ) ).isFile();
23        else
24          return false;
25     }
26  
27  } // end of class