All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class EDU.gatech.cc.is.util.FilenameFilterByEnding

java.lang.Object
   |
   +----EDU.gatech.cc.is.util.FilenameFilterByEnding

public class FilenameFilterByEnding
extends Object
implements FilenameFilter
Create a FilenameFilter that only accepts names whose ending matches a given value.

Copyright (c)1997, 1998 Tucker Balch

Version:
$Revision: 1.2 $
Author:
Tucker Balch

Constructor Index

 o FilenameFilterByEnding(String)
Create a FilenameFilterByEnding object.

Method Index

 o accept(File, String)
Check a filename to see if it meets critera.
 o main(String[])
Test the filter.

Constructors

 o FilenameFilterByEnding
 public FilenameFilterByEnding(String e)
Create a FilenameFilterByEnding object.

Parameters:
e - String, the ending to match.

Methods

 o accept
 public boolean accept(File d,
                       String name)
Check a filename to see if it meets critera.

Parameters:
d - File, the file.
name - String, the name of the file.
Returns:
true if ending matches, false otherwise.
 o main
 public static void main(String args[])
Test the filter.


All Packages  Class Hierarchy  This Package  Previous  Next  Index