Class JMeterFileFilter
-
- All Implemented Interfaces:
-
java.io.FileFilter
public class JMeterFileFilter extends FileFilter implements FileFilter
A file filter which allows files to be filtered based on a list of allowed extensions. Optionally returns directories.
-
-
Constructor Summary
Constructors Constructor Description JMeterFileFilter(Array<String> extensions)
Create a new JMeter file filter which allows the specified extensions. JMeterFileFilter(Array<String> extensions, boolean allow)
Create a new JMeter file filter which allows the specified extensions.
-
Method Summary
-
-
Method Detail
-
accept
boolean accept(File f)
Determine if the specified file is allowed by this filter. The file will be allowed if it is a directory, or if the end of the filename matches one of the extensions allowed by this filter. The filename is converted to lower-case before making the comparison.
- Parameters:
f
- the File being tested- Returns:
true if the file should be allowed, false otherwise
-
accept
boolean accept(String filename)
Determine if the specified filename is allowed by this filter. The file will be allowed if the end of the filename matches one of the extensions allowed by this filter. The comparison is case-sensitive. If no extensions were provided for this filter, the file will always be allowed.
- Parameters:
filename
- the filename to test- Returns:
true if the file should be allowed, false otherwise
-
getDescription
String getDescription()
Get a description for this filter.
- Returns:
a description for this filter
-
-
-
-