Class GBXFilter

java.lang.Object
  |
  +--GBXFilter

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

This is and implementation of the FilenameFilter interface used to filter all files other than *.gbx.


Field Summary
(package private)  java.lang.String afn
          The alternate filter name
(package private) static java.lang.String filter
          Default filter string.
 
Constructor Summary
GBXFilter()
          Default constructor.
GBXFilter(java.lang.String afn)
          This constructor sets the name of the filter.
 
Method Summary
 boolean accept(java.io.File dir, java.lang.String name)
          Test to see whether a file should be included in the file list or not.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filter

static final java.lang.String filter
Default filter string.

afn

java.lang.String afn
The alternate filter name
Constructor Detail

GBXFilter

public GBXFilter(java.lang.String afn)
This constructor sets the name of the filter.
Parameters:
afn - alternate filter name

GBXFilter

public GBXFilter()
Default constructor.
Method Detail

accept

public boolean accept(java.io.File dir,
                      java.lang.String name)
Test to see whether a file should be included in the file list or not.
Specified by:
accept in interface java.io.FilenameFilter
Parameters:
dir - the name of the directory in which the file was found.
name - the filename
Returns:
true if the file should be included in the filelist. False otherwise.
Since:
JDK1.0