Compoze Software, Inc.

com.compoze.util
Class IoUtility.BynameFilenameFilter

java.lang.Object
  |
  +--com.compoze.util.IoUtility.BynameFilenameFilter
All Implemented Interfaces:
java.io.FilenameFilter, java.io.Serializable
Enclosing class:
IoUtility

public static class IoUtility.BynameFilenameFilter
extends java.lang.Object
implements java.io.FilenameFilter, java.io.Serializable

Filter a file by its name.

See Also:
Serialized Form

Constructor Summary
IoUtility.BynameFilenameFilter(java.lang.String sFilename, boolean bIgnoreCase)
          Constructor.
 
Method Summary
 boolean accept(java.io.File dir, java.lang.String sFilename)
          Determines whether or not to accept the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IoUtility.BynameFilenameFilter

public IoUtility.BynameFilenameFilter(java.lang.String sFilename,
                                      boolean bIgnoreCase)
Constructor.
Parameters:
sFilename - the filename to compare
bIgnoreCase - if true, ignore case in comparison
Method Detail

accept

public boolean accept(java.io.File dir,
                      java.lang.String sFilename)
Determines whether or not to accept the file.
Specified by:
accept in interface java.io.FilenameFilter

Compoze Software, Inc.

Copyright ©1999-2003 Compoze Software, Inc. All rights reserved.