Jazz3D API


com.sygem.jazz3d3
Interface ResourceLoader

All Known Implementing Classes:
GenericResourceLoader

public interface ResourceLoader

Interface class - used to specify methods for loading any type of resource, either locally, or over the Internet.

Thanks go to David Silver @ Integra for this elegant solution to a tricky problem.

Version:
3.0a
Author:
SyGem Software

Method Summary
 java.lang.Object loadResource(java.lang.String relativeName)
          This method loads a resource given the specified relative "file name".
 java.lang.Object loadResource(java.net.URL url)
          This method loads a resource whose location can be expressed by a URL.
 

Method Detail

loadResource

public java.lang.Object loadResource(java.lang.String relativeName)
                              throws java.io.IOException
This method loads a resource given the specified relative "file name". It allows us to customize the mapping from relative names to absolute locations of resources. In particular, there is no requirement that the absolute location of the resource to be loaded be expressible as a URL. This allows Jazz3D to be free from any restriction on where resources are stored.

loadResource

public java.lang.Object loadResource(java.net.URL url)
                              throws java.io.IOException
This method loads a resource whose location can be expressed by a URL. It is typically called by loadResource(String)

©2001 SyGem Software