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, toString
public DirectoryResourceHandle(String name, File file, File codeSource, Manifest manifest) throws MalformedURLException
MalformedURLException
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
elasticsearch-river-jdbc