|
Apache JMeter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.filechooser.FileFilter
org.apache.jmeter.gui.JMeterFileFilter
public class JMeterFileFilter
A file filter which allows files to be filtered based on a list of allowed extensions. Optionally returns directories.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JMeterFileFilter(String[] extensions)
extensions - non-null array of allowed file extensions
public JMeterFileFilter(String[] extensions,
boolean allow)
extensions - non-null array of allowed file extensionsallow - should directories be returned ?| Method Detail |
|---|
public boolean accept(File f)
accept in interface FileFilteraccept in class FileFilterf - the File being tested
public boolean accept(String filename)
filename - the filename to test
public String getDescription()
getDescription in class FileFilter
|
Apache JMeter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||