|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcore.filter.MediaFileFilter
public class MediaFileFilter
This class provides the file filter for the DuplicatesTask class.
| Constructor Summary | |
|---|---|
MediaFileFilter(java.lang.String[] ext)
Creates a new MediaFileFilter object given an array of file extensions. |
|
| Method Summary | |
|---|---|
boolean |
accept(java.io.File dir,
java.lang.String name)
This method will determine whether to accept a file or not through the file filter based on whether or not the file name ends with one of the given extension. |
java.lang.String |
getDescription()
Returns the description of the extensions to accept. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MediaFileFilter(java.lang.String[] ext)
ext - the extensions to filter files by.| Method Detail |
|---|
public boolean accept(java.io.File dir,
java.lang.String name)
accept in interface java.io.FilenameFilterdir - the File to check for acceptance by the filter.name - the file name of the given file.
public java.lang.String getDescription()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||