org.jdesktop.wonderland.client.assetmgr
Enum AssetStream.AssetResponse

java.lang.Object
  extended by java.lang.Enum<AssetStream.AssetResponse>
      extended by org.jdesktop.wonderland.client.assetmgr.AssetStream.AssetResponse
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<AssetStream.AssetResponse>
Enclosing class:
AssetStream

public static enum AssetStream.AssetResponse
extends java.lang.Enum<AssetStream.AssetResponse>

An enumeration that indicates the status of the stream: STREAM_READY: An input stream is available to be read of the asset data ASSET_CACHED: The desired asset is already cached by the asset manager ASSET_INVALID: The repository does not contain the proper asset


Enum Constant Summary
ASSET_CACHED
           
ASSET_INVALID
           
STREAM_READY
           
 
Method Summary
static AssetStream.AssetResponse valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AssetStream.AssetResponse[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

STREAM_READY

public static final AssetStream.AssetResponse STREAM_READY

ASSET_CACHED

public static final AssetStream.AssetResponse ASSET_CACHED

ASSET_INVALID

public static final AssetStream.AssetResponse ASSET_INVALID
Method Detail

values

public static AssetStream.AssetResponse[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (AssetStream.AssetResponse c : AssetStream.AssetResponse.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AssetStream.AssetResponse valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Open Wonderland - http://openwonderland.org