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
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
CLASS_EXTENSION
private static final String CLASS_EXTENSION
ClassFileInspector
public ClassFileInspector()
- Default Constructor
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