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, toStringpublic DirectoryResourceHandle(java.lang.String name,
java.io.File file,
java.io.File codeSource,
java.util.jar.Manifest manifest)
throws java.net.MalformedURLException
java.net.MalformedURLExceptionpublic java.lang.String getName()
ResourceHandlepublic java.net.URL getUrl()
ResourceHandlepublic java.net.URL getCodeSourceUrl()
ResourceHandlepublic boolean isDirectory()
ResourceHandlepublic java.io.InputStream getInputStream()
throws java.io.IOException
ResourceHandlejava.io.IOExceptionpublic int getContentLength()
ResourceHandlepublic java.util.jar.Manifest getManifest()
throws java.io.IOException
ResourceHandlegetManifest in interface ResourceHandlegetManifest in class AbstractResourceHandlejava.io.IOExceptionpublic java.util.jar.Attributes getAttributes()
throws java.io.IOException
ResourceHandlegetAttributes in interface ResourceHandlegetAttributes in class AbstractResourceHandlejava.io.IOExceptionpublic java.security.cert.Certificate[] getCertificates()
getCertificates in interface ResourceHandlegetCertificates in class AbstractResourceHandleCopyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.