public class ExtensionFileFilterWithClass extends ExtensionFileFilter
Constructor and Description |
---|
ExtensionFileFilterWithClass(java.lang.String[] extensions,
java.lang.String description,
java.lang.Class filterClass)
Creates an ExtensionFileFilterWithClass that accepts files that have any of the
extensions contained in the supplied array.
|
ExtensionFileFilterWithClass(java.lang.String extension,
java.lang.String description,
java.lang.Class filterClass)
Creates the ExtensionFileFilterWithClass
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class |
getFilterClass()
Returns the underlying class.
|
java.lang.Object |
newInstance()
Creates a new instance of the underlying class.
|
accept, accept, getDescription, getExtensions
public ExtensionFileFilterWithClass(java.lang.String extension, java.lang.String description, java.lang.Class filterClass)
extension
- the extension of accepted files.description
- a text description of accepted files.filterClass
- the underlying classpublic ExtensionFileFilterWithClass(java.lang.String[] extensions, java.lang.String description, java.lang.Class filterClass)
extensions
- an array of acceptable file extensions (as Strings).description
- a text description of accepted files.filterClass
- the underlying class