org.codehaus.plexus.resource.loader
public class JarResourceLoader extends AbstractResourceLoader
UNKNOWN: role-hint="jar"
Field Summary | |
---|---|
Map | entryDirectory
Maps entries to the parent JAR File
Key = the entry *excluding* plain directories
Value = the JAR URL |
static String | ID |
Map | jarfiles
Maps JAR URLs to the actual JAR
Key = the JAR URL
Value = the JAR |
Method Summary | |
---|---|
void | addEntries(Hashtable entries)
Copy all the entries into the entryDirectory
It will overwrite any duplicate keys. |
void | closeJar(String path)
Closes a Jar file and set its URLConnection
to null. |
InputStream | getResourceAsInputStream(String source)
Get an InputStream so that the Runtime can build a
template with it.
|
void | initialize() |
void | loadJar(String path) |
Parameters: source name of template to get
Returns: InputStream containing the template
Throws: ResourceNotFoundException if template not found in the file template path.