Package org.apache.axis2.classloader
Class JarResourceHandle
java.lang.Object
org.apache.axis2.classloader.AbstractResourceHandle
org.apache.axis2.classloader.JarResourceHandle
- All Implemented Interfaces:
ResourceHandle
- Version:
- $Rev: 704201 $ $Date: 2008-10-14 00:22:25 +0530 (Tue, 14 Oct 2008) $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the Attributes of the resource, or null if none.Return the Certificates of the resource, or null if none.Returns the CodeSource URL for the class or resource.intReturns the length of this resource data, or -1 if unknown.Returns and InputStream for reading this resource data.Returns the Manifest of the JAR file from which this resource was loaded, or null if none.getName()Return the name of the resource.getUrl()Returns the URL of the resource.booleanDoes this resource refer to a directory.Methods inherited from class org.apache.axis2.classloader.AbstractResourceHandle
close, getBytes, toString
-
Constructor Details
-
JarResourceHandle
public JarResourceHandle(JarFile jarFile, JarEntry jarEntry, URL codeSource) throws MalformedURLException - Throws:
MalformedURLException
-
-
Method Details
-
getName
Description copied from interface:ResourceHandleReturn the name of the resource. The name is a "/"-separated path name that identifies the resource. -
getUrl
Description copied from interface:ResourceHandleReturns the URL of the resource. -
getCodeSourceUrl
Description copied from interface:ResourceHandleReturns the CodeSource URL for the class or resource. -
isDirectory
public boolean isDirectory()Description copied from interface:ResourceHandleDoes this resource refer to a directory. Directory resources are commly used as the basis for a URL in client application. A directory resource has 0 bytes for it's content. -
getInputStream
Description copied from interface:ResourceHandleReturns and InputStream for reading this resource data.- Throws:
IOException
-
getContentLength
public int getContentLength()Description copied from interface:ResourceHandleReturns the length of this resource data, or -1 if unknown. -
getManifest
Description copied from interface:ResourceHandleReturns the Manifest of the JAR file from which this resource was loaded, or null if none.- Specified by:
getManifestin interfaceResourceHandle- Overrides:
getManifestin classAbstractResourceHandle- Throws:
IOException
-
getAttributes
Description copied from interface:ResourceHandleReturn the Attributes of the resource, or null if none.- Specified by:
getAttributesin interfaceResourceHandle- Overrides:
getAttributesin classAbstractResourceHandle- Throws:
IOException
-
getCertificates
Description copied from interface:ResourceHandleReturn the Certificates of the resource, or null if none.- Specified by:
getCertificatesin interfaceResourceHandle- Overrides:
getCertificatesin classAbstractResourceHandle
-