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

Quick Search    Search Deep

Source code: com/flexstor/common/io/xfile/filters/XDirFilter.java


1   /*
2    * XDirFilter.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.xfile.filters;
12  
13  import com.flexstor.common.io.xfile.FlexXFile;
14  import com.flexstor.common.io.xfile.XFilenameFilter;
15  
16  
17  /**
18  * DIRFilter
19  * Filters out all files, and accepts only directories
20  * used when Browsing for images locations.
21  **/
22  public class XDirFilter
23     extends XFilenameFilter
24  {
25     // Subclasses don't need to implement the logic for this method; just return true
26     // The real implementation is in the subclasses implementing XFilenameFilterI
27     public boolean accept(FlexXFile dir, String name) { return true; }
28  }