public class JMeterFileFilter extends FileFilter implements FileFilter
| Constructor and Description |
|---|
JMeterFileFilter(String[] extensions)
Create a new JMeter file filter which allows the specified extensions.
|
JMeterFileFilter(String[] extensions,
boolean allow)
Create a new JMeter file filter which allows the specified extensions.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(File f)
Determine if the specified file is allowed by this filter.
|
boolean |
accept(String filename)
Determine if the specified filename is allowed by this filter.
|
String |
getDescription()
Get a description for this filter.
|
public JMeterFileFilter(String[] extensions)
extensions - non-null array of allowed file extensionspublic JMeterFileFilter(String[] extensions, boolean allow)
extensions - non-null array of allowed file extensionsallow - should directories be returned ?public boolean accept(File f)
accept in interface FileFilteraccept in class FileFilterf - the File being testedpublic boolean accept(String filename)
filename - the filename to testpublic String getDescription()
getDescription in class FileFilterCopyright © 1998-2021 Apache Software Foundation. All Rights Reserved.