\r
/** This class is just like FileRegex, except that its accept method\r
only returns true if the file matching the pattern is a directory.*/\r
-public class DirFileRegex extends FileRegex {\r
- public DirFileRegex() { dirflag = DIR; }\r
- public DirFileRegex(String fp) { super(fp); dirflag = DIR; }\r
- public static String[] list(String f) {\r
- return list(f,DIR);\r
- }\r
+public class DirFileRegex\r
+ extends FileRegex\r
+{\r
+ public DirFileRegex()\r
+ {\r
+ dirflag = DIR;\r
+ }\r
+\r
+ public DirFileRegex(String fp)\r
+ {\r
+ super(fp);\r
+ dirflag = DIR;\r
+ }\r
+\r
+ public static String[] list(String f)\r
+ {\r
+ return list(f, DIR);\r
+ }\r
}\r