Package org.jppf.doc
Class JPPFDirFilter
java.lang.Object
org.jppf.doc.AbstractFileFilter
org.jppf.doc.JPPFDirFilter
- All Implemented Interfaces:
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.
-
Field Summary
Fields inherited from class org.jppf.doc.AbstractFileFilter
excludes, includes -
Constructor Summary
ConstructorsConstructorDescriptionInitialize a filter accepting all directory names except those excluded by default.JPPFDirFilter(String[] includes) Initialize a filter accepting the specified directory names and excluding those specified byDEFAULT_EXCLUDES.JPPFDirFilter(String[] includes, String[] excludes) Initialize a filter accepting the specified directory names and excluding the specified ones. -
Method Summary
Methods inherited from class org.jppf.doc.AbstractFileFilter
excluded, included
-
Constructor Details
-
JPPFDirFilter
public JPPFDirFilter()Initialize a filter accepting all directory names except those excluded by default. -
JPPFDirFilter
Initialize a filter accepting the specified directory names and excluding those specified byDEFAULT_EXCLUDES.- Parameters:
includes- the included directory names; if null all are included. Null values are ignored.
-
JPPFDirFilter
Initialize a filter accepting the specified directory names and excluding the specified ones.- Parameters:
includes- the included directory names; if null all are included. Null values are ignored.excludes- the excluded directory names; if null none are excluded. Null values are ignored.
-
-
Method Details
-
accept
Determine if a file is accepted.- Parameters:
path- the file path to check.- Returns:
- true if the file is a directory, false otherwise.
- See Also:
-