public class DirectoryResourceHandle extends AbstractResourceHandle
| Constructor and Description |
|---|
DirectoryResourceHandle(String name,
File file,
File codeSource,
Manifest manifest) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
close, getBytes, toStringpublic DirectoryResourceHandle(String name, File file, File codeSource, Manifest manifest) throws MalformedURLException
MalformedURLExceptionpublic String getName()
ResourceHandlepublic URL getUrl()
ResourceHandlepublic URL getCodeSourceUrl()
ResourceHandlepublic boolean isDirectory()
ResourceHandlepublic InputStream getInputStream() throws IOException
ResourceHandleIOExceptionpublic int getContentLength()
ResourceHandlepublic Manifest getManifest() throws IOException
ResourceHandlegetManifest in interface ResourceHandlegetManifest in class AbstractResourceHandleIOExceptionpublic Attributes getAttributes() throws IOException
ResourceHandlegetAttributes in interface ResourceHandlegetAttributes in class AbstractResourceHandleIOExceptionpublic Certificate[] getCertificates()
getCertificates in interface ResourceHandlegetCertificates in class AbstractResourceHandleelasticsearch-river-jdbc