public class ComboFileFilter extends FileFilter implements FileFilter, Comparable
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.
|
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 © 1996–2023 The SSEC Visualization Project. All rights reserved.