org.jppf.doc
Class AbstractFileFilter
java.lang.Object
org.jppf.doc.AbstractFileFilter
- All Implemented Interfaces:
- FileFilter
- Direct Known Subclasses:
- JPPFDirFilter, JPPFFileFilter
public abstract class AbstractFileFilter
- extends Object
- implements FileFilter
Filter that only accepts directories.
It is possible to include or excluded specific directory names, in which case the including filter is applied before the excluding one.
|
Method Summary |
protected boolean |
excluded(String name,
boolean ignoreCase)
Check whether the specified name is excluded by this filter. |
protected boolean |
included(String name,
boolean ignoreCase)
Check whether the specified name is included by this filter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
includes
protected String[] includes
- Included names. If specified, only these directories will be included.
excludes
protected String[] excludes
- Excluded names. If specified, only these directories will be excluded.
AbstractFileFilter
public AbstractFileFilter()
- Initialize a filter accepting all names.
included
protected boolean included(String name,
boolean ignoreCase)
- Check whether the specified name is included by this filter.
- Parameters:
name - the name to check.ignoreCase - determines whether name comparisons should ignore case.
- Returns:
- true if the name is included, false otherwise.
excluded
protected boolean excluded(String name,
boolean ignoreCase)
- Check whether the specified name is excluded by this filter.
- Parameters:
name - the name to check.ignoreCase - determines whether name comparisons should ignore case.
- Returns:
- true if the name is excluded, false otherwise.
Copyright © 2005-2010 JPPF Team.