Package org.nuxeo.common.xmap
Class Resource
- java.lang.Object
-
- org.nuxeo.common.xmap.Resource
-
public class Resource extends Object
A resource that can be retrieved using the class loader.This is wrapping an URL as returned by the class loader.
The URL class cannot be used directly because it already has a factory associated to it that constructs the URL using its constructor.
- Author:
- Bogdan Stefanescu
-
-
Method Detail
-
toURL
public URL toURL()
-
toURI
public URI toURI() throws URISyntaxException
- Throws:
URISyntaxException
-
toFile
public File toFile() throws URISyntaxException
- Throws:
URISyntaxException
-
-