public boolean isMatch(PathImpl path,String prefix){
  String suffix="";
  String fullPath=path.getPath();
  if (prefix.length() < fullPath.length()) {
    suffix=fullPath.substring(prefix.length());
  }
  for (int i=0; i < _excludeList.size(); i++) {
    PathPatternType pattern=_excludeList.get(i);
    if (pattern.isMatch(suffix))     return false;
  }
  if (_includeList == null)   return true;
  for (int i=0; i < _includeList.size(); i++) {
    PathPatternType pattern=_includeList.get(i);
    if (pattern.isMatch(suffix)) {
      return true;
    }
  }
  return false;
}

public boolean isMatch ( PathImpl path , String prefix ) { String suffix = "" ; String fullPath = path . getPath ( ) ; if ( prefix . length ( ) < fullPath . length ( ) ) { suffix = fullPath . substring ( prefix . length ( ) ) ; } for ( int i = 0 ; i < _excludeList . size ( ) ; i ++ ) { PathPatternType pattern = _excludeList . get ( i ) ; if ( pattern . isMatch ( suffix ) ) return false ; } if ( _includeList == null ) return true ; for ( int i = 0 ; i < _includeList . size ( ) ; i ++ ) { PathPatternType pattern = _includeList . get ( i ) ; if ( pattern . isMatch ( suffix ) ) { return true ; } } return false ; }
returns the set of files .
