|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xbean.classloader.AbstractResourceHandle
org.apache.xbean.classloader.DirectoryResourceHandle
public class DirectoryResourceHandle
Constructor Summary | |
---|---|
DirectoryResourceHandle(java.lang.String name,
java.io.File file,
java.io.File codeSource,
java.util.jar.Manifest manifest)
|
Method Summary | |
---|---|
java.util.jar.Attributes |
getAttributes()
Return the Attributes of the resource, or null if none. |
java.security.cert.Certificate[] |
getCertificates()
Always return null. |
java.net.URL |
getCodeSourceUrl()
Returns the CodeSource URL for the class or resource. |
int |
getContentLength()
Returns the length of this resource data, or -1 if unknown. |
java.io.InputStream |
getInputStream()
Returns and InputStream for reading this resource data. |
java.util.jar.Manifest |
getManifest()
Returns the Manifest of the JAR file from which this resource was loaded, or null if none. |
java.lang.String |
getName()
Return the name of the resource. |
java.net.URL |
getUrl()
Returns the URL of the resource. |
boolean |
isDirectory()
Does this resource refer to a directory. |
Methods inherited from class org.apache.xbean.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 DirectoryResourceHandle(java.lang.String name, java.io.File file, java.io.File codeSource, java.util.jar.Manifest manifest) throws java.net.MalformedURLException
java.net.MalformedURLException
Method Detail |
---|
public java.lang.String getName()
ResourceHandle
public java.net.URL getUrl()
ResourceHandle
public java.net.URL getCodeSourceUrl()
ResourceHandle
public boolean isDirectory()
ResourceHandle
public java.io.InputStream getInputStream() throws java.io.IOException
ResourceHandle
java.io.IOException
public int getContentLength()
ResourceHandle
public java.util.jar.Manifest getManifest() throws java.io.IOException
ResourceHandle
getManifest
in interface ResourceHandle
getManifest
in class AbstractResourceHandle
java.io.IOException
public java.util.jar.Attributes getAttributes() throws java.io.IOException
ResourceHandle
getAttributes
in interface ResourceHandle
getAttributes
in class AbstractResourceHandle
java.io.IOException
public java.security.cert.Certificate[] getCertificates()
getCertificates
in interface ResourceHandle
getCertificates
in class AbstractResourceHandle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |