kom.gateway
Class NamePrefixFilter

java.lang.Object
  |
  +--kom.gateway.NamePrefixFilter

class NamePrefixFilter
extends java.lang.Object
implements java.io.FilenameFilter


Field Summary
private  java.lang.String prefix
          File names starting with this string are accepted
 
Constructor Summary
(package private) NamePrefixFilter(java.lang.String prefix)
          Constructor.
 
Method Summary
 boolean accept(java.io.File dir, java.lang.String name)
          Filters file name list
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

prefix

private java.lang.String prefix
File names starting with this string are accepted
Constructor Detail

NamePrefixFilter

NamePrefixFilter(java.lang.String prefix)
Constructor.
Parameters:
prefix - Check for file names starting with this string
Method Detail

accept

public boolean accept(java.io.File dir,
                      java.lang.String name)
Filters file name list
Specified by:
accept in interface java.io.FilenameFilter
Parameters:
dir - Directory
name - File name
Returns:
true if name conforms to pattern, i e starts with prefix