|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.valhalla.pluginmanager.PluginJAR
Represents a plugin in a Jar File
Constructor Summary | |
PluginJAR(java.lang.String location)
Constructs the Plugin Jar |
Method Summary | |
void |
close()
Closes the JarFile |
boolean |
contains(java.lang.String file)
|
java.io.InputStream |
getInputStream(java.util.jar.JarEntry entry)
Gets the InputStream from an entry |
java.util.jar.JarEntry |
getJarEntry(java.lang.String name)
Gets the jarEntry with a specific name |
boolean |
getLoaded()
|
java.lang.String |
getLocation()
|
java.lang.String |
getName()
|
java.util.Properties |
getProperties()
Returns the jar information( |
void |
loadContents()
Loads the contents of the Jar into the Properties |
Plugin |
loadPlugin()
Loads the specified plugin |
void |
setLoaded(boolean loaded)
Sets whether or not the jar has been loaded |
void |
unloadPlugin()
Unloads the specified plugin |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PluginJAR(java.lang.String location) throws java.io.IOException
location
- The location of the plugin
java.io.IOException
- if there is an exception while opening the pluginMethod Detail |
public java.util.jar.JarEntry getJarEntry(java.lang.String name)
name
- the name of the file you want to get the entry for
public void close()
public java.io.InputStream getInputStream(java.util.jar.JarEntry entry)
entry
- which entry to get the input stream for
public java.lang.String getLocation()
public void setLoaded(boolean loaded)
loaded
- true if booleanpublic boolean getLoaded()
public void loadContents() throws java.io.IOException
java.io.IOException
- if there is an error reading the jar filepublic Plugin loadPlugin()
public void unloadPlugin()
public java.util.Properties getProperties()
public java.lang.String getName()
public boolean contains(java.lang.String file)
file
- the file to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |