|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.geronimo.kernel.classloader.AbstractResourceHandle
org.apache.geronimo.kernel.classloader.JarResourceHandle
public class JarResourceHandle
| Constructor Summary | |
|---|---|
JarResourceHandle(JarFile jarFile,
JarEntry jarEntry,
URL codeSource)
|
|
| Method Summary | |
|---|---|
Attributes |
getAttributes()
Return the Attributes of the resource, or null if none. |
Certificate[] |
getCertificates()
Return the Certificates of the resource, or null if none. |
URL |
getCodeSourceUrl()
Returns the CodeSource URL for the class or resource. |
int |
getContentLength()
Returns the length of this resource data, or -1 if unknown. |
InputStream |
getInputStream()
Returns and InputStream for reading this resource data. |
Manifest |
getManifest()
Returns the Manifest of the JAR file from which this resource was loaded, or null if none. |
String |
getName()
Return the name of the resource. |
URL |
getUrl()
Returns the URL of the resource. |
boolean |
isDirectory()
Does this resource refer to a directory. |
| Methods inherited from class org.apache.geronimo.kernel.classloader.AbstractResourceHandle |
|---|
close, getBytes, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JarResourceHandle(JarFile jarFile,
JarEntry jarEntry,
URL codeSource)
throws MalformedURLException
MalformedURLException| Method Detail |
|---|
public String getName()
ResourceHandle
public URL getUrl()
ResourceHandle
public URL getCodeSourceUrl()
ResourceHandle
public boolean isDirectory()
ResourceHandle
public InputStream getInputStream()
throws IOException
ResourceHandle
IOExceptionpublic int getContentLength()
ResourceHandle
public Manifest getManifest()
throws IOException
ResourceHandle
getManifest in interface ResourceHandlegetManifest in class AbstractResourceHandleIOException
public Attributes getAttributes()
throws IOException
ResourceHandle
getAttributes in interface ResourceHandlegetAttributes in class AbstractResourceHandleIOExceptionpublic Certificate[] getCertificates()
ResourceHandle
getCertificates in interface ResourceHandlegetCertificates in class AbstractResourceHandle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||