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
Resource
public Resource(URL url)
Resource
public Resource(Context ctx,
String path)
toURL
public URL toURL()
toURI
public URI toURI()
throws URISyntaxException
- Throws:
URISyntaxException
toFile
public File toFile()
throws URISyntaxException
- Throws:
URISyntaxException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.