org.im4java.utils
Class BaseFilter
java.lang.Object
org.im4java.utils.BaseFilter
- All Implemented Interfaces:
- java.io.FilenameFilter
- Direct Known Subclasses:
- ExtensionFilter, GlobbingFilter, RegexFilter
public abstract class BaseFilter
- extends java.lang.Object
- implements java.io.FilenameFilter
This is the base class of all FilenameFilters in this package. It provides
basic directory-management (recursion, dot-dir-policy).
- Since:
- 1.1.0
- Version:
- $Revision: 1.2 $
- Author:
- $Author: bablokb $
Method Summary |
protected boolean |
acceptDir(java.io.File dir,
java.lang.String name)
Check if we should accept the given directory. |
void |
ignoreDotDirs(boolean pIgnoreDotDirs)
Ignore directories beginning with a dot. |
void |
setRecursion(boolean pRecMode)
Set the recursion-mode for this instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.io.FilenameFilter |
accept |
BaseFilter
public BaseFilter()
setRecursion
public void setRecursion(boolean pRecMode)
- Set the recursion-mode for this instance.
- Parameters:
pRecMode
- If true, recursively load filenames
ignoreDotDirs
public void ignoreDotDirs(boolean pIgnoreDotDirs)
- Ignore directories beginning with a dot.
- Parameters:
pIgnoreDotDirs
- If true, ignore hidden directories
acceptDir
protected boolean acceptDir(java.io.File dir,
java.lang.String name)
- Check if we should accept the given directory.
Released under the LGPL, (c) Bernhard Bablok 2008-2010
Homepage: http://im4java.sourceforge.net/