FileDocCategorySizeDatePackage
FNFilter2.javaAPI DocExample539Sat Nov 25 12:54:56 GMT 2000None

FNFilter2

public class FNFilter2 extends Object implements FilenameFilter
FNFilter - directory lister using FilenameFilter
author
Ian Darwin

Fields Summary
Constructors Summary
Methods Summary
public booleanaccept(java.io.File dir, java.lang.String s)

		if (s.endsWith(".java"))
			return true;
		// others?
		return false;
	
public static voidmain(java.lang.String[] av)

		FNFilter2 ff = new FNFilter2();
		ff.process(".");
	
public voidprocess(java.lang.String dir)

		String objects[] = (new File(dir)).list(this);

		for (int i=0; i<objects.length; i++)
			System.out.println(objects[i]);