org.glite.ce.monitorapij.resource
Class ClassFilter

java.lang.Object
  extended byorg.glite.ce.monitorapij.resource.ClassFilter
All Implemented Interfaces:
java.io.FilenameFilter

public class ClassFilter
extends java.lang.Object
implements java.io.FilenameFilter

This class checks if a file located in the specified directory is a jar.

Author:
Luigi Zangrando (zangrando@pd.infn.it)
See Also:
FilenameFilter

Constructor Summary
ClassFilter()
           
 
Method Summary
 boolean accept(java.io.File dir, java.lang.String name)
          Check if a file located in the specified directory is a jar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassFilter

public ClassFilter()
Method Detail

accept

public boolean accept(java.io.File dir,
                      java.lang.String name)
Check if a file located in the specified directory is a jar.

Specified by:
accept in interface java.io.FilenameFilter
Parameters:
dir - File specifying a directory (not yet used).
name - String specifying the name of the file to check.
Returns:
true if the file specified by the String name ends with ".jar", false otherwise.
See Also:
FilenameFilter.accept(java.io.File, java.lang.String)