public class ExtensionFileFilter extends FileFilter implements FilenameFilter
Modifier and Type | Field and Description |
---|---|
(package private) String[] |
mExtenstionList
The file extensions this filter should let pass.
|
(package private) String |
mName
The localized name for this filter.
|
Constructor and Description |
---|
ExtensionFileFilter(String[] extenstionList,
String name)
Creates a new instance of ExtensionFileFilter.
|
ExtensionFileFilter(String extension,
String name)
Creates a new instance of ExtensionFileFilter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(File file)
Returns whether this given File is accepted by this filter.
|
boolean |
accept(File dir,
String name)
Returns whether this given File is accepted by this filter.
|
String |
getDescription()
Gets the localized name of this filter.
|
String |
toString()
Gets the localized name of this filter.
|
String[] mExtenstionList
String mName
public ExtensionFileFilter(String extension, String name)
extension
- The file extension this filter should let pass.name
- The localized name for this filter.public String toString()
public boolean accept(File file)
accept
in class FileFilter
file
- The file to check.public String getDescription()
getDescription
in class FileFilter
public boolean accept(File dir, String name)
accept
in interface FilenameFilter
dir
- The directory of the file to check.name
- The name of the file to check.TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)