Class ImageFilenameFilter

java.lang.Object
  extended byImageFilenameFilter
All Implemented Interfaces:
java.io.FilenameFilter

public class ImageFilenameFilter
extends java.lang.Object
implements java.io.FilenameFilter


Constructor Summary
ImageFilenameFilter()
           
 
Method Summary
 boolean accept(java.io.File dir, java.lang.String name)
          Overrides abstract method accept from interface FilenameFilter Contains the following file extensions: jpg,jpeg,JPG,JPEG
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageFilenameFilter

public ImageFilenameFilter()
Method Detail

accept

public boolean accept(java.io.File dir,
                      java.lang.String name)
Overrides abstract method accept from interface FilenameFilter Contains the following file extensions: jpg,jpeg,JPG,JPEG

Specified by:
accept in interface java.io.FilenameFilter
Parameters:
dir - Directory in which the file is located
name - Filename to be verified
Returns:
true if filename matches filter, else false
See Also:
FilenameFilter