public class GenericFileFilter
extends javax.swing.filechooser.FileFilter
Constructor and Description |
---|
GenericFileFilter(java.util.List<java.lang.String> exts,
java.lang.String description) |
GenericFileFilter(java.lang.String[] exts,
java.lang.String description) |
GenericFileFilter(java.lang.String ext,
java.lang.String description) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.io.File f) |
java.lang.String |
addExtension(java.lang.String fn) |
boolean |
fileExtensionMatches(java.io.File f) |
java.lang.String |
getDescription() |
static java.lang.String |
getExtension(java.io.File f) |
static java.lang.String |
getExtension(java.lang.String s) |
boolean |
isValidExtension(java.lang.String ext) |
public GenericFileFilter(java.util.List<java.lang.String> exts, java.lang.String description)
public GenericFileFilter(java.lang.String[] exts, java.lang.String description)
public GenericFileFilter(java.lang.String ext, java.lang.String description)
public java.lang.String addExtension(java.lang.String fn)
public static java.lang.String getExtension(java.io.File f)
public static java.lang.String getExtension(java.lang.String s)
public boolean fileExtensionMatches(java.io.File f)
public boolean isValidExtension(java.lang.String ext)
public boolean accept(java.io.File f)
accept
in class javax.swing.filechooser.FileFilter
public java.lang.String getDescription()
getDescription
in class javax.swing.filechooser.FileFilter