org.nuxeo.common.xmap
Class Resource
java.lang.Object
org.nuxeo.common.xmap.Resource
public class Resource
- extends java.lang.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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Resource
public Resource(java.net.URL url)
Resource
public Resource(Context ctx,
java.lang.String path)
toURL
public java.net.URL toURL()
toURI
public java.net.URI toURI()
throws java.net.URISyntaxException
- Throws:
java.net.URISyntaxException
toFile
public java.io.File toFile()
throws java.net.URISyntaxException
- Throws:
java.net.URISyntaxException
Copyright © 2010 Nuxeo SAS. All Rights Reserved.