|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.kernel.classloader.AbstractResourceHandle org.apache.geronimo.kernel.classloader.DirectoryResourceHandle
public class DirectoryResourceHandle
Constructor Summary | |
---|---|
DirectoryResourceHandle(String name,
File file,
File codeSource,
Manifest manifest)
|
Method Summary | |
---|---|
Attributes |
getAttributes()
Return the Attributes of the resource, or null if none. |
Certificate[] |
getCertificates()
Always return null. |
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 DirectoryResourceHandle(String name, File file, File codeSource, Manifest manifest) 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
IOException
public int getContentLength()
ResourceHandle
public Manifest getManifest() throws IOException
ResourceHandle
getManifest
in interface ResourceHandle
getManifest
in class AbstractResourceHandle
IOException
public Attributes getAttributes() throws IOException
ResourceHandle
getAttributes
in interface ResourceHandle
getAttributes
in class AbstractResourceHandle
IOException
public 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 |