Package org.jppf.utils
Class FileReplacer.ReplacerFilter
java.lang.Object
org.jppf.utils.FileReplacer.ReplacerFilter
- All Implemented Interfaces:
FileFilter
- Enclosing class:
- FileReplacer
File filter based on a set of extensions.
-
Constructor Summary
ConstructorsConstructorDescriptionReplacerFilter(String[] exts) Initializer this filter with the specified set of file extensions.ReplacerFilter(String[] exts, String[] exc) Initializer this filter with the specified set of file extensions. -
Method Summary
-
Constructor Details
-
ReplacerFilter
Initializer this filter with the specified set of file extensions.- Parameters:
exts- an array of file extensions to process.exc- a comma-separated list of regex used to exclude folders.
-
ReplacerFilter
Initializer this filter with the specified set of file extensions.- Parameters:
exts- a comma-separated list of file extensions to process.
-
-
Method Details
-
accept
Tests whether or not the specified abstract pathname should be included in a pathname list.- Specified by:
acceptin interfaceFileFilter- Parameters:
file- the abstract pathname to be tested- Returns:
- true if and only if pathname should be included.
-