FileDocCategorySizeDatePackage
ImageFilter.javaAPI DocExample860Tue Dec 12 18:59:20 GMT 2000None

ImageFilter

public class ImageFilter extends FileFilter

Fields Summary
Constructors Summary
Methods Summary
public booleanaccept(java.io.File f)

        if (f.isDirectory()) {
            return true;
        }

        String extension = Utils.getExtension(f);
	if (extension != null) {
            if (extension.equals(Utils.tiff) ||
                extension.equals(Utils.tif) ||
                extension.equals(Utils.gif) ||
                extension.equals(Utils.jpeg) ||
                extension.equals(Utils.jpg)) {
                    return true;
            } else {
                return false;
            }
    	}

        return false;
    
public java.lang.StringgetDescription()

        return "Just Images";