public class GenericFileFilter extends FileFilter
| 构造器 | 说明 |
|---|---|
GenericFileFilter(String[] filesExtsIn,
String description) |
This is the constructor - it takes in the following:-
filesExtsIn - this is the array of file extensions that you wish to create a file filter for. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
boolean |
accept(File f) |
This is the method to allow a file to bee added to the displayed list or
not.
|
String |
getDescription() |
This is the method defined by the model
|
static String |
getExtension(File file) |
This is the method to get the file extension from the file name
|
String |
getFileExtent() |
Get file extent
|
public GenericFileFilter(String[] filesExtsIn, String description)
public boolean accept(File f)
accept 在类中 FileFilterpublic String getDescription()
getDescription 在类中 FileFilterpublic String getFileExtent()
Copyright © 2019. All rights reserved.