FileDocCategorySizeDatePackage
ExcludeExtensionFilter.javaAPI DocGlassfish v2 API2592Fri May 04 22:34:50 BST 2007com.sun.enterprise.diagnostics.util

ExcludeExtensionFilter

public class ExcludeExtensionFilter extends Object implements FilenameFilter
Excludes files with provided extension
author
mu125243

Fields Summary
String
extension
Constructors Summary
public ExcludeExtensionFilter(String ext)
Creates a new instance of ExcludePropertiesFilter

        extension = ext;
    
Methods Summary
public booleanaccept(java.io.File aDir, java.lang.String fileName)

        if (aDir != null && fileName != null) {
            if (fileName.endsWith(extension))
                return false;
            return true;
        }
        return false;