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

Quick Search    Search Deep

org.websody.util
Class RegexpFileFilter  view RegexpFileFilter download RegexpFileFilter.java

java.lang.Object
  extended byorg.websody.util.RegexpFileFilter
All Implemented Interfaces:
java.io.FileFilter

public class RegexpFileFilter
extends java.lang.Object
implements java.io.FileFilter

FileFilter that can be configured with regular expressions.


Field Summary
private  boolean acceptAllDirectories
           
private  java.io.File baseDir
           
private  java.lang.String basePath
           
private  org.apache.regexp.RE[] exclude
           
private  org.apache.regexp.RE[] include
           
 
Constructor Summary
RegexpFileFilter(java.io.File baseDir, java.lang.String[] include, java.lang.String[] exclude)
           
 
Method Summary
 boolean accept(java.io.File f)
          This method determines whether or not a given pathname should be included in a pathname listing.
private  boolean isExcluded(java.lang.String path)
           
private  boolean isIncluded(java.lang.String path)
           
 void setAcceptAllDirectories(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

baseDir

private java.io.File baseDir

basePath

private java.lang.String basePath

acceptAllDirectories

private boolean acceptAllDirectories

include

private org.apache.regexp.RE[] include

exclude

private org.apache.regexp.RE[] exclude
Constructor Detail

RegexpFileFilter

public RegexpFileFilter(java.io.File baseDir,
                        java.lang.String[] include,
                        java.lang.String[] exclude)
                 throws org.apache.regexp.RESyntaxException
Method Detail

setAcceptAllDirectories

public void setAcceptAllDirectories(boolean b)

accept

public boolean accept(java.io.File f)
Description copied from interface: java.io.FileFilter
This method determines whether or not a given pathname should be included in a pathname listing.

Specified by:
accept in interface java.io.FileFilter

isIncluded

private boolean isIncluded(java.lang.String path)

isExcluded

private boolean isExcluded(java.lang.String path)