X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fcom%2Fstevesoft%2Fpat%2FNonDirFileRegex.java;h=864243c1e792479fce3d22caa97bcf080e529c30;hb=4b2be7cd8c14e67cc347609199e25c7f09fda988;hp=92f54a3e91ed384453ff4440c489bd6e11ebedbb;hpb=c40cf903f740a72ab63dd1abc10fa33450ce660d;p=jalview.git diff --git a/src/com/stevesoft/pat/NonDirFileRegex.java b/src/com/stevesoft/pat/NonDirFileRegex.java index 92f54a3..864243c 100755 --- a/src/com/stevesoft/pat/NonDirFileRegex.java +++ b/src/com/stevesoft/pat/NonDirFileRegex.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 not a directory.*/ -public class NonDirFileRegex extends FileRegex { - public NonDirFileRegex() { dirflag = NONDIR; } - public NonDirFileRegex(String fp) { super(fp); dirflag = NONDIR; } - public static String[] list(String f) { - return list(f,NONDIR); - } -} +// +// 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 not a directory. + */ +public class NonDirFileRegex extends FileRegex +{ + public NonDirFileRegex() + { + dirflag = NONDIR; + } + + public NonDirFileRegex(String fp) + { + super(fp); + dirflag = NONDIR; + } + + public static String[] list(String f) + { + return list(f, NONDIR); + } +}