org.eclipse.internal.xpand2.pr.util
Class GenericFileFilter
java.lang.Object
org.eclipse.internal.xpand2.pr.util.GenericFileFilter
- All Implemented Interfaces:
- FilenameFilter
public class GenericFileFilter
- extends Object
- implements FilenameFilter
Configurable FilenameFilter. By default this filter does not accept well known files or directories
managed by source control systems and temporary files.
- See Also:
- "http://www.cvshome.org/docs/manual/cvs-1.11.10/cvs_18.html#SEC156"
|
Method Summary |
boolean |
accept(File file)
Accept all files and directories not included in the ignore list. |
boolean |
accept(File dir,
String name)
Accept all files and directories not included in the ignore list. |
String |
toString()
|
DEFAULTIGNORELIST
public static final String DEFAULTIGNORELIST
- See Also:
- Constant Field Values
GenericFileFilter
public GenericFileFilter(String aIgnoreList,
boolean aDefaultexcludes)
- Parameters:
aIgnoreList - List of file patterns to ignore. This list can be comma-separated or space-separated.
Note that file patterns containing commas can't be handled, since they will be recognized as two separated patterns.aDefaultexcludes - true use the default exclude list.
GenericFileFilter
public GenericFileFilter(String aIgnoreList)
GenericFileFilter
public GenericFileFilter()
- Creates the Filter with default excludes.
accept
public boolean accept(File dir,
String name)
- Accept all files and directories not included in the ignore list.
- Specified by:
accept in interface FilenameFilter
- Parameters:
dir - Directory to search in for a filename - File name to check
- Returns:
true when the file is accepted by the filter.
accept
public boolean accept(File file)
- Accept all files and directories not included in the ignore list.
- Parameters:
file - File to check
- Returns:
true when the file is accepted by the filter.
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2015. All rights reserved.