net.groboclown.util.jplugin.v2
Class ManifestFileInspector
java.lang.Object
|
+--net.groboclown.util.jplugin.v2.ManifestFileInspector
- All Implemented Interfaces:
- IFileInspector
- public class ManifestFileInspector
- extends Object
- implements IFileInspector
Examines a given Jar, and adds it to the correct list based
on its attributes.
- Version:
- 0.9.0 Alpha
- Author:
- Matt Albrecht
Method Summary |
static void |
addManifestToCollection(Manifest mf,
ClassCollection cc)
Static method that anyone can use |
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 void |
loadManifest(InputStream is,
ClassCollection cc)
|
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
EXTENSIONS
private static final String[] EXTENSIONS
ManifestFileInspector
public ManifestFileInspector()
- 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
addManifestToCollection
public static void addManifestToCollection(Manifest mf,
ClassCollection cc)
- Static method that anyone can use
checkName
protected boolean checkName(String name)
loadManifest
protected void loadManifest(InputStream is,
ClassCollection cc)
throws IOException
Written under the LGPL