com.wirefusion.player
Class Resource

java.lang.Object
  extended by com.wirefusion.player.Resource
All Implemented Interfaces:
java.lang.Runnable

public class Resource
extends java.lang.Object
implements java.lang.Runnable

Objects of this class represent WireFusion resources.


Method Summary
 java.awt.Image getImage()
          Returns an image which gets pixel data from this resource.
 ResourceInputStream getInputStream()
          Gets an input stream of the resource data.
 WfImage getWfImage()
          Returns a WfImage which gets pixel data from this resource.
 boolean isComplete()
          Returns true if the resource is fully loaded, otherwise false.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

isComplete

public boolean isComplete()
Returns true if the resource is fully loaded, otherwise false.

Returns:
true if resource is fully loaded

getInputStream

public ResourceInputStream getInputStream()
Gets an input stream of the resource data.

Returns:
an input stream

getImage

public java.awt.Image getImage()
Returns an image which gets pixel data from this resource.

Returns:
an image which gets its pixel data from this resource.

getWfImage

public WfImage getWfImage()
Returns a WfImage which gets pixel data from this resource.

Returns:
a WfImage which gets pixel data from this resource.