org.apache.xbean.classloader
public class DirectoryResourceHandle extends AbstractResourceHandle
Constructor and Description |
---|
DirectoryResourceHandle(java.lang.String name,
java.io.File file,
java.io.File codeSource,
java.util.jar.Manifest manifest) |
Modifier and Type | Method and Description |
---|---|
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.
|
close, getBytes, toString
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
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
Copyright © 2005-2016. All Rights Reserved.