return file.isDirectory() || file.getName().endsWith(".class");
String fileName = file.getName(); if (file.isDirectory() || fileName.endsWith(".class")) return true; if (fileName.endsWith(".java")) containsSourceFiles = true; return false;
	public DirectoryClassProducer(String dirName) throws InterruptedException {		FileFilter filter = new FileFilter() {			public boolean accept(File file) {				return file.isDirectory() || file.getName().endsWith(".class");			}		};		// This will throw InterruptedException if the thread is		// interrupted.		RecursiveFileSearch rfs = new RecursiveFileSearch(dirName, filter).search();		this.rfsIter = rfs.fileNameIterator();	}