Package org.jets3t.apps.uploader
Class UploaderFileExtensionFilter
java.lang.Object
javax.swing.filechooser.FileFilter
org.jets3t.apps.uploader.UploaderFileExtensionFilter
Defines which files can be selected within the Uploader's file chooser
for upload to S3. Files are filtered based on their filename extension.
- Author:
- James Murty
-
Constructor Summary
ConstructorsConstructorDescriptionUploaderFileExtensionFilter
(String description, List fileExtensionsList) Construct an extension-based file filter -
Method Summary
-
Constructor Details
-
UploaderFileExtensionFilter
Construct an extension-based file filter- Parameters:
description
- the name for this filter, such as "Movie files"fileExtensionsList
- a list of file extensions that the filter will accept, eg "avi", "mpg".
-
-
Method Details
-
accept
- Specified by:
accept
in classFileFilter
- Returns:
- True if the file is a Directory, or the file has an extension that matches one of the allowed extensions provided to this class's constructor. False otherwise.
-
getDescription
- Specified by:
getDescription
in classFileFilter
-