Jazz3D API


com.sygem.jazz3d3
Class GenericResourceLoader

java.lang.Object
  |
  +--com.sygem.jazz3d3.GenericResourceLoader
All Implemented Interfaces:
ResourceLoader
Direct Known Subclasses:
ImageResourceLoader, URLConnectionResourceLoader

public abstract class GenericResourceLoader
extends java.lang.Object
implements ResourceLoader

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

This class provides the ability to load files using either an Applet, or the default ToolKit. This allows Jazz3D to be decoupled from Applets, giving more flexibility for Applications.

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".
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sygem.jazz3d3.ResourceLoader
loadResource
 

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.
Specified by:
loadResource in interface ResourceLoader
Parameters:
relativeName - The relative path to the file
Returns:
The loaded Object - needs to be cast

©2001 SyGem Software