commons-file/src/main/java/info/monitorenter/cpdetector/io/FileFilterExtensions.java
public boolean accept(File pathname) {
		boolean ret = false;
		// search for extension without dot. 
		StringTokenizer tokenizer = new StringTokenizer(pathname.getAbsolutePath(), ".");
		String extension = "no.txt"; // a dot, because verify will not allow these tokens: won't accept, if no extension in pathname.
		while (tokenizer.hasMoreElements()) {
			extension = tokenizer.nextToken();
		}
		for (int i = this.m_extensions.length - 1; i >= 0; i--) {
			if (this.m_extensions[i].equals(extension)) {
				ret = true;
				break;
			}
		}
		return ret;
	}
public boolean accept(File pathname) {
		boolean ret = false;
		// search for extension without dot. 
		StringTokenizer tokenizer = new StringTokenizer(pathname.getAbsolutePath(), ".");
		String extension = "no.txt"; // a dot, because verify will not allow these tokens: won't accept, if no extension in pathname.
		while (tokenizer.hasMoreElements()) {
			extension = tokenizer.nextToken();
		}
		for (int i = this.m_extensions.length - 1; i >= 0; i--) {
			if (this.m_extensions[i].equals(extension)) {
				ret = true;
				break;
			}
		}
		return ret;
	}
/* (non-Javadoc)
@see java.io.FileFilter#accept(java.io.File)