@ Override
	public boolean accept(File dir, String name)
	{
		// Ensure file is not a directory and file contains an extension
		if (new File (dir + File.separator + name).isDirectory () || !name.contains ("."))
			return false;
		
		String ext = name.substring (name.lastIndexOf ("."));
		
		// Check file extension against ACCEPTED_EXTENSIONS
		for (String s : ACCEPTED_EXTENSIONS) {
			if (s.equalsIgnoreCase (ext))
				return true;
		}
		
		return false;
	}