if (extension.indexOf('.") == -1) { extension = "." + extension; } this.extension = extension; this.description = description;
if (f.getName().endsWith(extension)) { return true; } else if (f.isDirectory()) { return true; } return false;
return this.description + "(*" + extension + ")";