net.groboclown.util.jplugin.v2
Class ClassFileInspector

java.lang.Object
  |
  +--net.groboclown.util.jplugin.v2.ClassFileInspector
All Implemented Interfaces:
IFileInspector

public class ClassFileInspector
extends Object
implements IFileInspector

Examines a given file or URL, and adds it to the correct list based on its attributes.

Version:
0.9.0 Alpha
Author:
Matt Albrecht

Field Summary
private static String CLASS_EXTENSION
           
 
Constructor Summary
ClassFileInspector()
          Default Constructor
 
Method Summary
protected  boolean checkName(String name)
           
 void discoverFile(File f, ClassCollection cc, ILocationSearcher ils, File baseFile)
          Examine the given File, and call the correct collection method to store it.
 void discoverURL(URL url, ClassCollection cc, ILocationSearcher ils, URL baseUrl)
          Examine the given URL, and call the correct collection method to store it.
protected  String getClassName(String baseName, String fullName)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

CLASS_EXTENSION

private static final String CLASS_EXTENSION
Constructor Detail

ClassFileInspector

public ClassFileInspector()
Default Constructor
Method Detail

discoverURL

public void discoverURL(URL url,
                        ClassCollection cc,
                        ILocationSearcher ils,
                        URL baseUrl)
                 throws IOException
Examine the given URL, and call the correct collection method to store it.
Specified by:
discoverURL in interface IFileInspector

discoverFile

public void discoverFile(File f,
                         ClassCollection cc,
                         ILocationSearcher ils,
                         File baseFile)
                  throws IOException
Examine the given File, and call the correct collection method to store it.
Specified by:
discoverFile in interface IFileInspector

checkName

protected boolean checkName(String name)

getClassName

protected String getClassName(String baseName,
                              String fullName)


Written under the LGPL