public class ComboFileFilter extends FileFilter implements FileFilter, Comparable
Modifier and Type | Field and Description |
---|---|
private String |
desc
Description.
|
private FileFilter[] |
filts
List of filters to be combined.
|
Constructor and Description |
---|
ComboFileFilter(FileFilter[] filters,
String description)
Constructs a new filter from a list of other filters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(File f)
Accepts files with the proper filename prefix.
|
int |
compareTo(Object o)
Compares two FileFilter objects alphanumerically.
|
String |
getDescription()
Returns the filter's description.
|
FileFilter[] |
getFilters()
Gets the list of file filters forming this filter combination.
|
static FileFilter[] |
sortFilters(FileFilter[] filters)
Sorts the given list of file filters, and combines filters with identical
descriptions into a combination filter that accepts anything any of its
constituant filters do.
|
static FileFilter[] |
sortFilters(Vector filters)
Sorts the given list of file filters, and combines filters with identical
descriptions into a combination filter that accepts anything any of its
constituant filters do.
|
String |
toString()
Gets a string representation of this file filter.
|
private FileFilter[] filts
private String desc
public ComboFileFilter(FileFilter[] filters, String description)
public FileFilter[] getFilters()
public static FileFilter[] sortFilters(FileFilter[] filters)
public static FileFilter[] sortFilters(Vector filters)
public boolean accept(File f)
accept
in interface FileFilter
accept
in class FileFilter
public String getDescription()
getDescription
in class FileFilter
public String toString()
public int compareTo(Object o)
compareTo
in interface Comparable
Copyright © 2017 Open Microscopy Environment