Nuxeo Enterprise Platform 5.4

org.nuxeo.common.xmap
Class Resource

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

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

Constructor Detail

Resource

public Resource(java.net.URL url)

Resource

public Resource(Context ctx,
                java.lang.String path)
Method Detail

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

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.