X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fcom%2Fstevesoft%2Fpat%2FDirFileRegex.java;h=bc62910e527408f471f85c06a18d8836a18349e2;hb=d07fe6a0891b57a9d707e356f7769395ce94b0da;hp=731457c700e3ea043e0e984142b813c1d7eab9a7;hpb=c40cf903f740a72ab63dd1abc10fa33450ce660d;p=jalview.git diff --git a/src/com/stevesoft/pat/DirFileRegex.java b/src/com/stevesoft/pat/DirFileRegex.java index 731457c..bc62910 100755 --- a/src/com/stevesoft/pat/DirFileRegex.java +++ b/src/com/stevesoft/pat/DirFileRegex.java @@ -1,19 +1,31 @@ -// -// This software is now distributed according to -// the Lesser Gnu Public License. Please see -// http://www.gnu.org/copyleft/lesser.txt for -// the details. -// -- Happy Computing! -// -package com.stevesoft.pat; -import java.io.File; - -/** This class is just like FileRegex, except that its accept method - only returns true if the file matching the pattern is a directory.*/ -public class DirFileRegex extends FileRegex { - public DirFileRegex() { dirflag = DIR; } - public DirFileRegex(String fp) { super(fp); dirflag = DIR; } - public static String[] list(String f) { - return list(f,DIR); - } -} +// +// This software is now distributed according to +// the Lesser Gnu Public License. Please see +// http://www.gnu.org/copyleft/lesser.txt for +// the details. +// -- Happy Computing! +// +package com.stevesoft.pat; + +/** + * This class is just like FileRegex, except that its accept method only returns + * true if the file matching the pattern is a directory. + */ +public class DirFileRegex extends FileRegex +{ + public DirFileRegex() + { + dirflag = DIR; + } + + public DirFileRegex(String fp) + { + super(fp); + dirflag = DIR; + } + + public static String[] list(String f) + { + return list(f, DIR); + } +}