123505 remove case dependency
git-svn-id: svn://10.0.0.236/trunk@4438 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
4ef63b0456
commit
ef8075f2b3
@ -22,19 +22,21 @@ import java.lang.*;
|
||||
|
||||
public class SuffixFilter implements FilenameFilter
|
||||
{
|
||||
String suffix;
|
||||
String suffix;
|
||||
|
||||
public SuffixFilter( String inSuffix )
|
||||
{
|
||||
suffix = inSuffix.toUpperCase();
|
||||
}
|
||||
|
||||
public SuffixFilter( String inSuffix )
|
||||
{
|
||||
suffix = inSuffix;
|
||||
}
|
||||
public boolean accept( File f, String s )
|
||||
{
|
||||
String sUpper = s.toUpperCase();
|
||||
|
||||
public boolean accept( File f, String s )
|
||||
{
|
||||
if ( s.endsWith( suffix ) )
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
if ( sUpper.endsWith( suffix ) )
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user