All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.media.j3d.MediaContainer

java.lang.Object
   |
   +----java.media.j3d.SceneGraphObject
           |
           +----java.media.j3d.NodeComponent
                   |
                   +----java.media.j3d.MediaContainer

public class MediaContainer
extends NodeComponent
The MediaContainer object defines all sound data: cached state flag, and associated sound data. This is either reference the media in the form of a URL path, or cached sound data: Java Media Player container, format and bits. Which JMF Players a J3D implemention will support has yet to be determined.


Variable Index

 o ALLOW_CACHE_READ
For MediaContainer component objects, specifies that this object allows the reading of its cached flag.
 o ALLOW_CACHE_WRITE
For MediaContainer component objects, specifies that this object allows the writing of its cached flag.
 o ALLOW_URL_READ
For MediaContainer component objects, specifies that this object allows the reading of it's sound data.
 o ALLOW_URL_WRITE
For MediaContainer component objects, specifies that this object allows the writing of it's URL String.

Constructor Index

 o MediaContainer()
Constructs and initializes a new MediaContainer object using defaults for all parameters.
 o MediaContainer(String)
Constructs and initializes a new MediaContainer object using specified parameters

Method Index

 o getCacheEnable()
Retrieve Cache Enable state flag
 o getURL()
Retrieve URL
 o setCacheEnable(boolean)
Set Cache Enable state flag Allows the writing of sound data explicitly into the MediaContainer rather than just referencing a JavaMedia container.
 o setURL(String)
Set URL

Variables

 o ALLOW_CACHE_READ
 public static final int ALLOW_CACHE_READ
For MediaContainer component objects, specifies that this object allows the reading of its cached flag.

 o ALLOW_CACHE_WRITE
 public static final int ALLOW_CACHE_WRITE
For MediaContainer component objects, specifies that this object allows the writing of its cached flag.

 o ALLOW_URL_READ
 public static final int ALLOW_URL_READ
For MediaContainer component objects, specifies that this object allows the reading of it's sound data.

 o ALLOW_URL_WRITE
 public static final int ALLOW_URL_WRITE
For MediaContainer component objects, specifies that this object allows the writing of it's URL String.

Constructors

 o MediaContainer
 public MediaContainer()
Constructs and initializes a new MediaContainer object using defaults for all parameters.

 o MediaContainer
 public MediaContainer(String URL)
Constructs and initializes a new MediaContainer object using specified parameters

Parameters:
path - string of URL path containing non-cached sound data

Methods

 o setCacheEnable
 public final void setCacheEnable(boolean flag)
Set Cache Enable state flag Allows the writing of sound data explicitly into the MediaContainer rather than just referencing a JavaMedia container.

Parameters:
flag - boolean denoting if sound data is cached in this instance
Throws: CapabilityNotSetException
if appropriate capability is not set and this object is part of live or compiled scene graph
 o getCacheEnable
 public final boolean getCacheEnable()
Retrieve Cache Enable state flag

Returns:
flag denoting is sound data is non-cached (URL) or cached.
Throws: CapabilityNotSetException
if appropriate capability is not set and this object is part of live or compiled scene graph
 o setURL
 public final void setURL(String path)
Set URL

Parameters:
path - string of URL containing non-cached sound data
Throws: CapabilityNotSetException
if appropriate capability is not set and this object is part of live or compiled scene graph
 o getURL
 public final String getURL()
Retrieve URL

Returns:
string of URL containing non-cached sound data
Throws: CapabilityNotSetException
if appropriate capability is not set and this object is part of live or compiled scene graph

All Packages  Class Hierarchy  This Package  Previous  Next  Index