| Constructor and Description |
|---|
UrlResource(URL url) |
UrlResource(URL url,
Namespace namespace) |
| Modifier and Type | Method and Description |
|---|---|
UrlResource |
createRelative(String relativePath,
Namespace namespace)
Creates a resource relative to this resource.
|
boolean |
equals(Object obj) |
InputStream |
getInputStream()
Returns input stream for the resource.
|
Namespace |
getNamespace()
Returns namespace of current resource.
|
int |
hashCode() |
String |
toString() |
contains, createRelative, createRelative, delete, getOutputStream, getRelativePathpublic UrlResource(URL url)
public InputStream getInputStream() throws IOException
ResourcegetInputStream in interface ResourceIOException - when input stream cannot be provided.public UrlResource createRelative(String relativePath, Namespace namespace) throws MalformedURLException
ResourcecreateRelative in interface ResourcerelativePath - path relative to this resource.namespace - name space of the created resource.MalformedURLExceptionpublic Namespace getNamespace()
ResourcegetNamespace in interface ResourceCopyright © 2020 CURS. All rights reserved.