public class ExtensionFileFilter extends FileFilter
Constructor and Description |
---|
ExtensionFileFilter(String description,
String extension)
Standard constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(File file)
Returns true if the file ends with the specified extension.
|
String |
getDescription()
Returns the description of the filter.
|
public boolean accept(File file)
accept
in class FileFilter
file
- the file to test.public String getDescription()
getDescription
in class FileFilter
Copyright © 2001–2018 JFree.org. All rights reserved.