com.cult3d.world
Class Resource

java.lang.Object
  |
  +--com.cult3d.world.Resource

public class Resource
extends java.lang.Object

This class provides a way to extract resources from a Cult3D object. A resource is any kind of data that can be represented with a byte array.


Constructor Summary
Resource(java.lang.String name)
          Constructs a Java representation of a Cult3D resource.
 
Method Summary
 byte[] getResource()
          Extracts the resource from the object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Resource

public Resource(java.lang.String name)
Constructs a Java representation of a Cult3D resource.
Parameters:
name - the name of the resource.
Throws:
NameNotFoundException - for invalid name.
Method Detail

getResource

public byte[] getResource()
Extracts the resource from the object.
Returns:
an array of bytes containing the resource.