Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.common.xmap
Class Resource

java.lang.Object
  extended by 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

Constructor Summary
Resource(Context ctx, String path)
           
Resource(URL url)
           
 
Method Summary
 File toFile()
           
 URI toURI()
           
 URL toURL()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Resource

public Resource(URL url)

Resource

public Resource(Context ctx,
                String path)
Method Detail

toURL

public URL toURL()

toURI

public URI toURI()
          throws URISyntaxException
Throws:
URISyntaxException

toFile

public File toFile()
            throws URISyntaxException
Throws:
URISyntaxException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.