Class JarHolder
- java.lang.Object
-
- org.apache.velocity.runtime.resource.loader.JarHolder
-
public class JarHolder extends java.lang.Object
A small wrapper around a Jar- Version:
- $Id: JarHolder.java 687177 2008-08-19 22:00:32Z nbubna $
-
-
Constructor Summary
Constructors Constructor Description JarHolder(RuntimeServices rs, java.lang.String urlpath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.util.Hashtable
getEntries()
java.io.InputStream
getResource(java.lang.String theentry)
java.lang.String
getUrlPath()
void
init()
-
-
-
Field Detail
-
urlpath
private java.lang.String urlpath
-
theJar
private java.util.jar.JarFile theJar
-
conn
private java.net.JarURLConnection conn
-
log
private Log log
-
-
Constructor Detail
-
JarHolder
public JarHolder(RuntimeServices rs, java.lang.String urlpath)
- Parameters:
rs
-urlpath
-
-
-
Method Detail
-
init
public void init()
-
close
public void close()
-
getResource
public java.io.InputStream getResource(java.lang.String theentry) throws ResourceNotFoundException
- Parameters:
theentry
-- Returns:
- The requested resource.
- Throws:
ResourceNotFoundException
-
getEntries
public java.util.Hashtable getEntries()
- Returns:
- The entries of the jar as a hashtable.
-
getUrlPath
public java.lang.String getUrlPath()
- Returns:
- The URL path of this jar holder.
-
-